community[patch]: pgvector replace nin_ by not_in (#22619)

- [ ] **community**: "pgvector: replace nin_ by not_in"

- [ ] **PR message**: nin_ do not exist in sqlalchemy orm, it's not_in
pull/22625/head
lucasiscovici 4 months ago committed by GitHub
parent 3999761201
commit 05bf98b2f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -733,7 +733,7 @@ class PGVector(VectorStore):
if operator in {"$in"}:
return queried_field.in_([str(val) for val in filter_value])
elif operator in {"$nin"}:
return queried_field.nin_([str(val) for val in filter_value])
return queried_field.not_in([str(val) for val in filter_value])
elif operator in {"$like"}:
return queried_field.like(filter_value)
elif operator in {"$ilike"}:

Loading…
Cancel
Save