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:
@@ -202,11 +202,11 @@ def search(
|
||||
model="embed-multilingual-v3.0",
|
||||
input_type="search_query",
|
||||
)
|
||||
results = client.search(
|
||||
results = client.query_points(
|
||||
collection_name="personal-notes",
|
||||
query_vector=response.embeddings[0],
|
||||
query=response.embeddings[0],
|
||||
limit=2,
|
||||
)
|
||||
).points
|
||||
return SearchResults(
|
||||
results=[
|
||||
Document(**point.payload)
|
||||
|
||||
Reference in New Issue
Block a user