Skip to content

Commit

Permalink
Changed starter message (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaPrahoveanu-SL authored Nov 27, 2024
1 parent 5f53946 commit e993790
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
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

0 comments on commit e993790

Please sign in to comment.