aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ChatBox/tools/RAGTool.ts
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2024-08-15 08:47:46 -0400
committerA.J. Shulman <Shulman.aj@gmail.com>2024-08-15 08:47:46 -0400
commit0c8001c61a55540cdeeb6ae249fdd2835580121c (patch)
tree924aae0ad45fd85c98986f5161ce6ccf2482847d /src/client/views/nodes/ChatBox/tools/RAGTool.ts
parentcd4b13bacd6639d2a731a05dfca700b201b2073c (diff)
currently works
Diffstat (limited to 'src/client/views/nodes/ChatBox/tools/RAGTool.ts')
-rw-r--r--src/client/views/nodes/ChatBox/tools/RAGTool.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/ChatBox/tools/RAGTool.ts b/src/client/views/nodes/ChatBox/tools/RAGTool.ts
index be591fa9a..26fa2adc5 100644
--- a/src/client/views/nodes/ChatBox/tools/RAGTool.ts
+++ b/src/client/views/nodes/ChatBox/tools/RAGTool.ts
@@ -1,6 +1,6 @@
import { BaseTool } from './BaseTool';
import { Vectorstore } from '../vectorstore/Vectorstore';
-import { Chunk } from '../types';
+import { RAGChunk } from '../types';
import * as fs from 'fs';
import { Networking } from '../../../../Network';
import { file } from 'jszip';
@@ -117,7 +117,7 @@ export class RAGTool extends BaseTool<{ hypothetical_document_chunk: string }> {
return formatted_chunks;
}
- async getFormattedChunks(relevantChunks: Chunk[]): Promise<{ type: string; text?: string; image_url?: { url: string } }[]> {
+ async getFormattedChunks(relevantChunks: RAGChunk[]): Promise<{ type: string; text?: string; image_url?: { url: string } }[]> {
try {
const { formattedChunks } = await Networking.PostToServer('/formatChunks', { relevantChunks });