Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add array_contains and array_overlaps operators for pgvector metadata filtering. #1352

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

micha-f
Copy link

@micha-f micha-f commented Feb 4, 2025

Related Issues

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

@micha-f micha-f requested a review from a team as a code owner February 4, 2025 09:39
@micha-f micha-f requested review from vblagoje and removed request for a team February 4, 2025 09:40
@CLAassistant
Copy link

CLAassistant commented Feb 4, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added integration:pgvector type:documentation Improvements or additions to documentation labels Feb 4, 2025
@micha-f micha-f changed the title feat: add array_contains and array_overlaps. feat: add array_contains and array_overlaps operators for pgvector metadata filtering. Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration:pgvector type:documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants