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>
2023-05-19 13:53:23 -07:00
..
cassettes Fix/issue 2695 (#3608) 2023-04-26 21:45:03 -07:00
docarray Add DocArray vector stores (#4483) 2023-05-10 15:22:16 -07:00
docker-compose Fix/issue 1213 (#2932) 2023-04-16 13:11:30 -07:00
fixtures fix: elasticsearch (#2402) 2023-04-05 06:51:32 -07:00
__init__.py
conftest.py [minor] Deep Lake auth improvements in docs, kwargs pass, faster tests (#2927) 2023-04-15 10:49:16 -07:00
fake_embeddings.py Propagate "filter" arg in Chroma similarity_search (#1869) 2023-03-22 19:40:10 -07:00
test_analyticdb.py Add a full PostgresSQL syntax database 'AnalyticDB' as vector store. (#3135) 2023-04-22 08:25:41 -07:00
test_annoy.py Add Annoy as VectorStore (#2939) 2023-04-16 13:44:04 -07:00
test_atlas.py
test_chroma.py Specify which data to return from chromadb (#4393) 2023-05-16 14:43:09 -07:00
test_deeplake.py Fixing DeepLake Overwrite Flag (#4683) 2023-05-15 17:39:16 -07:00
test_elasticsearch.py feat: improve pinecone tests (#2806) 2023-04-13 21:49:31 -07:00
test_faiss.py Add similarity_search_with_normalized_similarities (#2916) 2023-04-15 21:06:08 -07:00
test_lancedb.py Harrison/lancedb (#3634) 2023-04-27 08:14:36 -07:00
test_milvus.py Refactor Milvus/Zilliz (#3047) 2023-04-22 08:26:19 -07:00
test_myscale.py Harrison/myscale (#3352) 2023-04-22 09:17:38 -07:00
test_opensearch.py OpenSearch: Add Similarity Search with Score (#4089) 2023-05-08 16:35:21 -07:00
test_pgvector.py Adds 'IN' metadata filter for pgvector for checking set presence (#4982) 2023-05-19 13:53:23 -07:00
test_pinecone.py feat: improve pinecone tests (#2806) 2023-04-13 21:49:31 -07:00
test_qdrant.py Add support for Qdrant nested filter (#4354) 2023-05-09 10:34:11 -07:00
test_redis.py Update redis integration tests (#4937) 2023-05-18 10:22:17 -07:00
test_tair.py Harrison/tair (#3770) 2023-04-28 21:25:33 -07:00
test_weaviate.py Accept uuids kwargs for weaviate (#4800) 2023-05-16 15:26:46 -07:00
test_zilliz.py Refactor Milvus/Zilliz (#3047) 2023-04-22 08:26:19 -07:00