This commit is contained in:
parent
4ab7467a2f
commit
205aff91af
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ export class ChatServices {
|
|||
if (sanitizedQuestion === '' || !vectorStore) {
|
||||
return '';
|
||||
}
|
||||
let documents = await vectorStore.similaritySearch(sanitizedQuestion, numDocuments);
|
||||
let documents = await vectorStore.similaritySearch(sanitizedQuestion, parseInt(numDocuments));
|
||||
const uniqueDocuments = {};
|
||||
const MAX_DOCUMENTS = numDocuments;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue