mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +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
@@ -150,6 +150,7 @@ class ExtractMetadataRetriever_Retrievers implements INode {
|
||||
prompt: dynamicMetadataFilterRetrieverPrompt,
|
||||
topK: topK ? parseInt(topK, 10) : (vectorStore as any)?.k ?? 4
|
||||
})
|
||||
retriever.filter = vectorStore?.lc_kwargs?.filter ?? (vectorStore as any).filter
|
||||
|
||||
if (output === 'retriever') return retriever
|
||||
else if (output === 'document') return await retriever.getRelevantDocuments(finalInputQuery)
|
||||
|
||||
Reference in New Issue
Block a user