mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 23:00:00 +00:00
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
This commit is contained in:
parent
3999761201
commit
05bf98b2f9
@ -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…
Reference in New Issue
Block a user