Skip to content

Commit

Permalink
Increased the number of documents to be retrieved for a query #129 (#131
Browse files Browse the repository at this point in the history
)

Small change to data retriever to give better results.
  • Loading branch information
pranav-kural authored Apr 23, 2024
1 parent b0e01d9 commit 2e05f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ai/data-retrievers/DataRetriever.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class DataRetriever {
const vectorstore = await getVectorStore(config.vectorStoreConfig);

// create retriever using the vector store
this.retriever = vectorstore.asRetriever();
this.retriever = vectorstore.asRetriever(20);

logger.debug({ context: loggerContext }, "Data Retriever setup completed");
return this.retrieverTool;
Expand Down

0 comments on commit 2e05f3f

Please sign in to comment.