From 0c2d181e136cb93c9fc0f27944bd71a38503be2f Mon Sep 17 00:00:00 2001 From: dianaprahoveanu23 Date: Tue, 26 Nov 2024 16:04:53 +0000 Subject: [PATCH] Changed starter message --- frontend/src/components/message.module.css | 1 + frontend/src/useMessages.ts | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/message.module.css b/frontend/src/components/message.module.css index 91dcfda0..223576e0 100644 --- a/frontend/src/components/message.module.css +++ b/frontend/src/components/message.module.css @@ -29,6 +29,7 @@ margin: 24px 32px 16px 0; line-height: 22px; font-size: 16px; + white-space: pre-wrap; } .reasoning_header { diff --git a/frontend/src/useMessages.ts b/frontend/src/useMessages.ts index 25a38dce..935447df 100644 --- a/frontend/src/useMessages.ts +++ b/frontend/src/useMessages.ts @@ -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(), };