vectorStore.similaritySearch in javascript is not filtering #6626
dportabella
started this conversation in
General
Replies: 1 comment
-
Hi. I've also found myself in the same situation. The method If you check the implementation of the method Something you can try is using a custom retriever that wraps the search functionality of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
vectorStore.similaritySearch
in javascript is not calling the filter function. how to solve it?Note: The docs mentions "Filtering by metadata is currently not supported.", however, the source code seems to have it implemented.
https://js.langchain.com/v0.2/docs/integrations/vectorstores/faiss/
langchainjs/langchain-core/src/vectorstores.ts
Line 184 in 3cc45fe
Note: filtering by metadata works correctly in python:
Beta Was this translation helpful? Give feedback.
All reactions