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
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
..
agent power bi api wrapper integration tests & bug fix (#4983) 1 year ago
cache Optimize the initialization method of GPTCache (#4522) 1 year ago
callbacks add tracing v2 env var (#4465) 1 year ago
chains Callbacks Refactor [base] (#3256) 1 year ago
chat_models add alias for model (#4553) 1 year ago
document_loaders Add html parsers (#4874) 1 year ago
embeddings Dev2049/hf emb encode kwargs (#3925) 1 year ago
examples fix(document_loaders/telegram): fix pandas calls + add tests (#4806) 1 year ago
llms add alias for model (#4553) 1 year ago
memory Cassandra support for chat history (#4378) (#4764) 1 year ago
prompts Cleanup integration test dir (#3308) 1 year ago
retrievers Remove unnecessary comment (#4845) 1 year ago
utilities power bi api wrapper integration tests & bug fix (#4983) 1 year ago
vectorstores Adds 'IN' metadata filter for pgvector for checking set presence (#4982) 1 year ago
.env.example power bi api wrapper integration tests & bug fix (#4983) 1 year ago
__init__.py initial commit 2 years ago
conftest.py feat: improve pinecone tests (#2806) 1 year ago
test_document_transformers.py Contextual compression retriever (#2915) 1 year ago
test_nlp_text_splitters.py OptimizedPrompt -- k-shot example choice backed by semantic search (#91) 2 years ago
test_pdf_pagesplitter.py cleanup: unify 3 different pdf loaders, rename PagedPDFSplitter (#1615) 2 years ago
test_schema.py Callbacks Refactor [base] (#3256) 1 year ago
test_text_splitter.py Fix TextSplitter.from_tiktoken(#4361) 1 year ago