haystack-core-integrations
haystack-core-integrations copied to clipboard
feat: add array_contains and array_overlaps operators for pgvector metadata filtering.
Related Issues
- proposal for #1351
Proposed Changes:
Add array_contains (all items must be present in array) and array_overlaps (at least on item must be present in array) operators for PGVector metadata filtering.
How did you test it?
Since filterable_docs did not contain arrays in the document metadata, I added tests with custom documents containing arrays of tags in their metadata.
Notes for the reviewer
Checklist
- I have read the contributors guidelines and the code of conduct
- I have updated the related issue with new insights and changes
- I added unit tests and updated the docstrings
- I've used one of the conventional commit types for my PR title:
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:.