From 3ab57397e3101bfed2ad5abe8d295f7263c49751 Mon Sep 17 00:00:00 2001 From: Mateusz Baginski Date: Sun, 29 Dec 2024 19:49:40 +0100 Subject: [PATCH] fix(backend): improve prompt --- .../projects-summaries/projects-summaries.service.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/backend/src/modules/projects-summaries/projects-summaries.service.ts b/apps/backend/src/modules/projects-summaries/projects-summaries.service.ts index 77de32c..f4d53ba 100644 --- a/apps/backend/src/modules/projects-summaries/projects-summaries.service.ts +++ b/apps/backend/src/modules/projects-summaries/projects-summaries.service.ts @@ -90,9 +90,12 @@ export class ProjectsSummariesService { }), message: [ 'Create a concise project description based on the conversations and topics discussed in this project.', - 'Focus on what this project is about, its main goals, and key technical aspects.', - 'Use the same language as that one used in the conversations.', - 'Max. 2 short sentences, keep it short. You can use emojis.', + 'Requirements:', + '- Focus on what this project is about, its main goals, and key technical aspects.', + '- Use the same language as that one used in the conversations.', + '- Max. 2 short sentences, keep it as short as possible.', + '- You can use emojis.', + '- Do not include requirements in generated description.', '\n--\n', 'Project conversations:', ...chatsSummaries.flatMap(({ content, name }) => {