Files
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
..
2023-04-26 21:45:03 -07:00
2023-04-16 13:11:30 -07:00
2023-04-05 06:51:32 -07:00
2022-11-19 20:32:45 -08:00
2023-04-16 13:44:04 -07:00
2023-02-26 22:11:38 -08:00
2023-04-27 08:14:36 -07:00
2023-04-22 08:26:19 -07:00
2023-04-22 09:17:38 -07:00
2023-04-28 21:25:33 -07:00
2023-04-22 08:26:19 -07:00