Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fs-106/Update Start Message #39

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/components/message.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
margin: 24px 32px 16px 0;
line-height: 22px;
font-size: 16px;
white-space: pre-wrap;
}

.reasoning_header {
Expand Down
13 changes: 12 additions & 1 deletion frontend/src/useMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,20 @@ import {
resetChat,
} from './server';

const botMessage = `Hello. I am InferESG and I can help you analyse a company's sustainability messaging and detect potential greenwashing.

To start, upload a document with corporate sustainability messaging and I will analyse the file and create a report about it. My report will review the Environment, Social and Governance content, surface the sustainability statements that are most relevant to the company's industry and flag possible cases of greenwashing for you to investigate further.

Notes: I cannot definitively determine what is or is not greenwashing, it is up to you to determine what is greenwashing based on available evidence.

You will always be able to see how I came to my answers by clicking on the "How I came to this conclusion" button in my answers.

I work best with larger files such as Sustainability Reports.
`;

const starterMessage: Message = {
role: Role.Bot,
content: 'Hello, how can I help you?',
content: botMessage,
time: new Date().toLocaleTimeString(),
};

Expand Down