mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 15:01:11 +03:00
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:
+1
@@ -100,6 +100,7 @@ class SimilarityThresholdRetriever_Retrievers implements INode {
|
||||
maxK: maxK ? parseInt(maxK, 10) : 100,
|
||||
kIncrement: kIncrement ? parseInt(kIncrement, 10) : 2
|
||||
})
|
||||
retriever.filter = vectorStore?.lc_kwargs?.filter ?? (vectorStore as any).filter
|
||||
|
||||
if (output === 'retriever') return retriever
|
||||
else if (output === 'document') return await retriever.getRelevantDocuments(query ? query : input)
|
||||
|
||||
Reference in New Issue
Block a user