mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-29 16:08:32 +02:00
docs: Query API snippets with Python (#1095)
Co-authored-by: generall <andrey@vasnetsov.com>
This commit is contained in:
@@ -201,8 +201,9 @@ from qdrant_client import QdrantClient, models
|
||||
|
||||
client = QdrantClient(url="http://localhost:6333")
|
||||
|
||||
client.search(
|
||||
client.query_points(
|
||||
collection_name="{collection_name}",
|
||||
query=[0.1, 0.1, 0.9],
|
||||
query_filter=models.Filter(
|
||||
must=[
|
||||
models.FieldCondition(
|
||||
@@ -213,7 +214,6 @@ client.search(
|
||||
)
|
||||
]
|
||||
),
|
||||
query_vector=[0.1, 0.1, 0.9],
|
||||
limit=10,
|
||||
)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user