diff options
| author | A.J. Shulman <Shulman.aj@gmail.com> | 2024-07-22 10:49:02 -0400 |
|---|---|---|
| committer | A.J. Shulman <Shulman.aj@gmail.com> | 2024-07-22 10:49:02 -0400 |
| commit | 834ca4e21fead079e681b963e2d533d93a53cb91 (patch) | |
| tree | b091c4048db1473669011c3e35d0e2182281011c /src/client/views/nodes/ChatBox/tools/RAGTool.ts | |
| parent | ae4809cce727a056bdc648249c0f76174a496307 (diff) | |
fixing summaries by having them part of the ReAct prompt
Diffstat (limited to 'src/client/views/nodes/ChatBox/tools/RAGTool.ts')
| -rw-r--r-- | src/client/views/nodes/ChatBox/tools/RAGTool.ts | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/client/views/nodes/ChatBox/tools/RAGTool.ts b/src/client/views/nodes/ChatBox/tools/RAGTool.ts index 0a4529974..5bc31dbab 100644 --- a/src/client/views/nodes/ChatBox/tools/RAGTool.ts +++ b/src/client/views/nodes/ChatBox/tools/RAGTool.ts @@ -5,10 +5,7 @@ import * as fs from 'fs'; import { Networking } from '../../../../Network'; export class RAGTool extends BaseTool<{ hypothetical_document_chunk: string }> { - constructor( - private vectorstore: Vectorstore, - summaries: () => string - ) { + constructor(private vectorstore: Vectorstore) { super( 'rag', 'Perform a RAG search on user documents', @@ -43,11 +40,7 @@ export class RAGTool extends BaseTool<{ hypothetical_document_chunk: string }> { `Performs a RAG (Retrieval-Augmented Generation) search on user documents and returns a set of document chunks (either images or text) that can be used to provide a grounded response based on - user documents - - !!!IMPORTANT Use the RAG tool ANYTIME the question may potentially (even if you are not sure) relate to one of the user's documents. - Here are the summaries of the user's documents: - ${summaries()}` + user documents` ); } |
