mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-06 19:38:30 +02:00
update code snippet
This commit is contained in:
@@ -181,9 +181,9 @@ def fashion_search_standard(query_text, limit=5):
|
||||
text_model = TextEmbedding(model_name="Qdrant/clip-ViT-B-32-text")
|
||||
query_embedding = list(text_model.embed([query_text]))[0]
|
||||
|
||||
results = client.search(
|
||||
results = client.query_points(
|
||||
collection_name=collection_name,
|
||||
query_vector=query_embedding.tolist(),
|
||||
query=models.NearestQuery(nearest=query_embedding.tolist()),
|
||||
limit=limit,
|
||||
with_payload=True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user