fix filtering example

This commit is contained in:
David Myriel
2024-02-06 20:52:18 +01:00
parent 59c7a8e03a
commit eeb7bd2482
@@ -115,7 +115,7 @@ client.upsert(
## Retrieve data via filters
The access control setup is completed as you specify the criteria for data retrieval. When searching for vectors, you need to use a `query_filter` along with `group_id` to filter vectors for each user. Additionally specifying the `shard_key_selector` will look for data in the region of your choosing. In this case, your query is based on `user_1` and data dedicated to the Canadian region.
The access control setup is completed as you specify the criteria for data retrieval. When searching for vectors, you need to use a `query_filter` along with `group_id` to filter vectors for each user.
```python
client.search(
@@ -128,12 +128,6 @@ client.search(
value="user_1",
),
),
models.FieldCondition(
key="shard_key_selector",
match=models.MatchValue(
value="canada"
,)
),
]
),
query_vector=[0.1, 0.1, 0.9],