From f915013d2ccfaeb7f04bf8bfea57e6d7d1f66b81 Mon Sep 17 00:00:00 2001 From: "A.J. Shulman" Date: Thu, 19 Dec 2024 11:45:00 -0500 Subject: image generation works better --- src/client/views/nodes/chatbot/tools/RAGTool.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/client/views/nodes/chatbot/tools/RAGTool.ts') diff --git a/src/client/views/nodes/chatbot/tools/RAGTool.ts b/src/client/views/nodes/chatbot/tools/RAGTool.ts index 1f73986a7..2db61c768 100644 --- a/src/client/views/nodes/chatbot/tools/RAGTool.ts +++ b/src/client/views/nodes/chatbot/tools/RAGTool.ts @@ -23,8 +23,9 @@ const ragToolInfo: ToolInfo = { 1. **Grounded Text Guidelines**: - Each tag must correspond to exactly one citation, ensuring a one-to-one relationship. - Always cite a **subset** of the chunk, never the full text. The citation should be as short as possible while providing the relevant information (typically one to two sentences). - - Do not paraphrase the chunk text in the citation; use the original subset directly from the chunk. + - Do not paraphrase the chunk text in the citation; use the original subset directly from the chunk. IT MUST BE EXACT AND WORD FOR WORD FROM THE ORIGINAL CHUNK! - If multiple citations are needed for different sections of the response, create new tags for each. + - !!!IMPORTANT: For video transcript citations, use a subset of the exact text from the transcript as the citation content. It should be just before the start of the section of the transcript that is relevant to the grounded_text tag. 2. **Citation Guidelines**: - The citation must include only the relevant excerpt from the chunk being referenced. @@ -56,7 +57,8 @@ const ragToolInfo: ToolInfo = { ***NOTE***: - Prefer to cite visual elements (i.e. chart, image, table, etc.) over text, if they both can be used. Only if a visual element is not going to be helpful, then use text. Otherwise, use both! - Use as many citations as possible (even when one would be sufficient), thus keeping text as grounded as possible. - - Cite from as many documents as possible and always use MORE, and as granular, citations as possible.`, + - Cite from as many documents as possible and always use MORE, and as granular, citations as possible. + - CITATION TEXT MUST BE EXACTLY AS IT APPEARS IN THE CHUNK. DO NOT PARAPHRASE!`, parameterRules: ragToolParams, }; -- cgit v1.2.3-70-g09d2