You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/tests/integration_tests/vectorstores
Eugene Yurtsev 0ff59569dc
Adds 'IN' metadata filter for pgvector for checking set presence (#4982)
# Adds "IN" metadata filter for pgvector to all checking for set
presence

PGVector currently supports metadata filters of the form:
```
{"filter": {"key": "value"}}
```
which will return documents where the "key" metadata field is equal to
"value".

This PR adds support for metadata filters of the form:
```
{"filter": {"key": { "IN" : ["list", "of", "values"]}}}
```

Other vector stores support this via an "$in" syntax. I chose to use
"IN" to match postgres' syntax, though happy to switch.
Tested locally with PGVector and ChatVectorDBChain.


@dev2049

---------

Co-authored-by: jade@spanninglabs.com <jade@spanninglabs.com>
1 year ago
..
cassettes Fix/issue 2695 (#3608) 1 year ago
docarray Add DocArray vector stores (#4483) 1 year ago
docker-compose Fix/issue 1213 (#2932) 1 year ago
fixtures fix: elasticsearch (#2402) 1 year ago
__init__.py add few shot example (#148) 2 years ago
conftest.py [minor] Deep Lake auth improvements in docs, kwargs pass, faster tests (#2927) 1 year ago
fake_embeddings.py Propagate "filter" arg in Chroma similarity_search (#1869) 1 year ago
test_analyticdb.py Add a full PostgresSQL syntax database 'AnalyticDB' as vector store. (#3135) 1 year ago
test_annoy.py Add Annoy as VectorStore (#2939) 1 year ago
test_atlas.py Harrison/atlas db (#1315) 1 year ago
test_chroma.py Specify which data to return from chromadb (#4393) 1 year ago
test_deeplake.py Fixing DeepLake Overwrite Flag (#4683) 1 year ago
test_elasticsearch.py feat: improve pinecone tests (#2806) 1 year ago
test_faiss.py Add similarity_search_with_normalized_similarities (#2916) 1 year ago
test_lancedb.py Harrison/lancedb (#3634) 1 year ago
test_milvus.py Refactor Milvus/Zilliz (#3047) 1 year ago
test_myscale.py Harrison/myscale (#3352) 1 year ago
test_opensearch.py OpenSearch: Add Similarity Search with Score (#4089) 1 year ago
test_pgvector.py Adds 'IN' metadata filter for pgvector for checking set presence (#4982) 1 year ago
test_pinecone.py feat: improve pinecone tests (#2806) 1 year ago
test_qdrant.py Add support for Qdrant nested filter (#4354) 1 year ago
test_redis.py Update redis integration tests (#4937) 1 year ago
test_tair.py Harrison/tair (#3770) 1 year ago
test_weaviate.py Accept uuids kwargs for weaviate (#4800) 1 year ago
test_zilliz.py Refactor Milvus/Zilliz (#3047) 1 year ago