@langchain/community module "chromadb" throws if filter for search is not defined #7181
Closed
5 tasks done
Labels
auto:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I am trying to use chroma through langchain to search for vector embeddings.
If documents do not contain general metadata to filter for a 400 Bad Request is returned.
Only if all documents contain e.g.
{ ..., metadata: { source: '1' } }
results can be found withawait vectorStore.similaritySearch('biology', 1, { source: '1' } )
IMO querying should work without any filter being set.
I'd propose the following code change:
https://github.com/langchain-ai/langchainjs/blob/main/libs/langchain-community/src/vectorstores/chroma.ts
System Info
platform: mac
package.json
The text was updated successfully, but these errors were encountered: