Files
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>
2023-05-19 13:53:23 -07:00
..
2023-05-10 11:08:29 -07:00
2023-04-30 11:14:09 -07:00
2023-05-18 09:12:23 -07:00
2023-05-17 22:39:11 -04:00
2023-05-18 09:12:23 -07:00
2022-10-24 14:51:15 -07:00