Fix vector store filter not work (#4065)

* Fix vector store filter not work

* Update ExtractMetadataRetriever.ts

* Update HydeRetriever.ts

* Update MultiQueryRetriever.ts

* Update SimilarityThresholdRetriever.ts

---------

Co-authored-by: Henry Heng <henryheng@flowiseai.com>
This commit is contained in:
Hans
2025-02-26 23:03:54 +08:00
committed by GitHub
parent d8dc1820e1
commit 86a26f6ae3
5 changed files with 5 additions and 2 deletions
@@ -50,7 +50,7 @@ export class ReciprocalRankFusion extends BaseDocumentCompressor {
})
const docList: Document<Record<string, any>>[][] = []
for (let i = 0; i < queries.length; i++) {
const resultOne = await this.baseRetriever.vectorStore.similaritySearch(queries[i], 5)
const resultOne = await this.baseRetriever.vectorStore.similaritySearch(queries[i], 5, this.baseRetriever.filter)
const docs: any[] = []
resultOne.forEach((doc) => {
docs.push(doc)