diff options
Diffstat (limited to 'src/client/views/nodes/chatbot/vectorstore')
| -rw-r--r-- | src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts b/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts index 72060973b..f10e889e2 100644 --- a/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts +++ b/src/client/views/nodes/chatbot/vectorstore/Vectorstore.ts @@ -790,10 +790,10 @@ export class Vectorstore { * Retrieves the most relevant document chunks for a given query. * Uses OpenAI for embedding the query and Pinecone for vector similarity matching. * @param query The search query string. - * @param topK The number of top results to return (default is 10). + * @param topK The number of top results to return (default is 15). * @returns A list of document chunks that match the query. */ - async retrieve(query: string, topK: number = 10, docIds?: string[]): Promise<RAGChunk[]> { + async retrieve(query: string, topK: number = 15, docIds?: string[]): Promise<RAGChunk[]> { console.log(`Retrieving chunks for query: ${query}`); try { // Generate an embedding for the query using OpenAI. |
