From 9e03af45e1fc5dfae23d6e96ded56aef271a32b3 Mon Sep 17 00:00:00 2001 From: Josako Date: Fri, 7 Mar 2025 15:06:20 +0100 Subject: [PATCH] - small improvement to RAG to not repeat historic answers --- config/tasks/RAG_CONSOLIDATION_TASK/1.0.0.yaml | 4 +++- config/tasks/RAG_TASK/1.0.0.yaml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/tasks/RAG_CONSOLIDATION_TASK/1.0.0.yaml b/config/tasks/RAG_CONSOLIDATION_TASK/1.0.0.yaml index d536b2b..66255d5 100644 --- a/config/tasks/RAG_CONSOLIDATION_TASK/1.0.0.yaml +++ b/config/tasks/RAG_CONSOLIDATION_TASK/1.0.0.yaml @@ -4,7 +4,8 @@ task_description: > Your teams have collected answers to a user's query (in between triple backquotes), and collected additional follow-up questions (in between triple %) to reach their goals. Ensure the answers are provided, and select a maximum of {nr_of_questions} out of the additional questions to be asked in order not to overwhelm the user. The questions are - in no specific order, so don't just pick the first ones, but the ones most appropriate in your opinion! + in no specific order, so don't just pick the first ones. Make a good mixture of different types of questions, + different topics or subjects! Questions are to be asked when your team proposes questions. You ensure both answers and additional questions are bundled into 1 clear communication back to the user. Use {language} for your consolidated communication. Be sure to format your answer in markdown when appropriate. Ensure enumerations or bulleted lists are formatted as @@ -16,6 +17,7 @@ task_description: > Additional Questions: %%%{additional_questions}%%% + expected_output: > One consolidated communication towards the end user. {custom_expected_output} diff --git a/config/tasks/RAG_TASK/1.0.0.yaml b/config/tasks/RAG_TASK/1.0.0.yaml index 7fd3661..f8612d3 100644 --- a/config/tasks/RAG_TASK/1.0.0.yaml +++ b/config/tasks/RAG_TASK/1.0.0.yaml @@ -2,7 +2,8 @@ version: "1.0.0" name: "RAG Task" task_description: > Answer the query based on the following context, delimited between triple backquotes, and taking into account - the history of the discussion, in between triple % + the history of the discussion, in between triple %. Try not to repeat answers already given in the recent history, + unless confirmation is required or repetition is essential to give a coherent answer. {custom_description} Use the following {language} in your communication, and cite the sources used at the end of the full conversation. If the question cannot be answered using the given context, answer "I have insufficient information to answer this question."