mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-21 14:18:52 +00:00
community: Adding IN Operator to AzureCosmosDBNoSQLVectorStore (#29805)
- ** Description**: I have added a new operator in the operator map with key `$in` and value `IN`, so that you can define filters using lists as values. This was already contemplated but as IN operator was not in the map they cannot be used. - **Issue**: Fixes #29804. - **Dependencies**: No extra.
This commit is contained in:
parent
8901b113c3
commit
1dfac909d8
@ -845,6 +845,7 @@ class AzureCosmosDBNoSqlVectorSearch(VectorStore):
|
|||||||
operator_map = {
|
operator_map = {
|
||||||
"$eq": "=",
|
"$eq": "=",
|
||||||
"$ne": "!=",
|
"$ne": "!=",
|
||||||
|
"$in": "IN",
|
||||||
"$lt": "<",
|
"$lt": "<",
|
||||||
"$lte": "<=",
|
"$lte": "<=",
|
||||||
"$gt": ">",
|
"$gt": ">",
|
||||||
|
Loading…
Reference in New Issue
Block a user