mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-30 16:38:31 +02:00
docs: Query API snippets with Python (#1095)
Co-authored-by: generall <andrey@vasnetsov.com>
This commit is contained in:
@@ -328,16 +328,11 @@ from qdrant_client import QdrantClient, models
|
||||
client = QdrantClient(url="http://localhost:6333")
|
||||
|
||||
|
||||
result = client.search(
|
||||
result = client.query_points(
|
||||
collection_name="{collection_name}",
|
||||
query_vector=models.NamedSparseVector(
|
||||
name="text",
|
||||
vector=models.SparseVector(
|
||||
indices=[1, 3, 5, 7],
|
||||
values=[0.1, 0.2, 0.3, 0.4]
|
||||
),
|
||||
)
|
||||
)
|
||||
query_vector=models.SparseVector(indices=[1, 3, 5, 7], values=[0.1, 0.2, 0.3, 0.4]),
|
||||
using="text",
|
||||
).points
|
||||
```
|
||||
|
||||
```rust
|
||||
|
||||
Reference in New Issue
Block a user