diff options
author | A.J. Shulman <Shulman.aj@gmail.com> | 2024-07-10 18:13:44 -0400 |
---|---|---|
committer | A.J. Shulman <Shulman.aj@gmail.com> | 2024-07-10 18:13:44 -0400 |
commit | f82343158f423fdca136a639ec61c1e8d93b5467 (patch) | |
tree | 500f4ee87adf1ef7f08eeca2009655f985201dcf | |
parent | ff5fa6654a74096bbd9f14c5d236b8d08861fe2f (diff) |
trying to update RAG when new docs are added
-rw-r--r-- | src/client/views/nodes/ChatBox/Agent.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/ChatBox/Agent.ts b/src/client/views/nodes/ChatBox/Agent.ts index cec5e1770..63363ab0b 100644 --- a/src/client/views/nodes/ChatBox/Agent.ts +++ b/src/client/views/nodes/ChatBox/Agent.ts @@ -41,6 +41,7 @@ export class Agent { } async askAgent(question: string, maxTurns: number = 8): Promise<string> { + this.tools.rag = new RAGTool(this.vectorstore, this.vectorstore ? this.vectorstore.getSummaries() : 'No documents available.'); console.log(`Starting query: ${question}`); this.messages.push({ role: 'user', content: question }); const chatHistory = this.formatChatHistory(); |