aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2024-07-10 18:13:44 -0400
committerA.J. Shulman <Shulman.aj@gmail.com>2024-07-10 18:13:44 -0400
commitf82343158f423fdca136a639ec61c1e8d93b5467 (patch)
tree500f4ee87adf1ef7f08eeca2009655f985201dcf
parentff5fa6654a74096bbd9f14c5d236b8d08861fe2f (diff)
trying to update RAG when new docs are added
-rw-r--r--src/client/views/nodes/ChatBox/Agent.ts1
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();