From 4ae75a617576c6950371007f4681046e6b717365 Mon Sep 17 00:00:00 2001 From: Jenny <143733659+mrscoopers@users.noreply.github.com> Date: Thu, 21 Nov 2024 10:04:35 +0100 Subject: [PATCH] Update qdrant-landing/content/documentation/embeddings/jina-embeddings.md Co-authored-by: Anush --- .../content/documentation/embeddings/jina-embeddings.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qdrant-landing/content/documentation/embeddings/jina-embeddings.md b/qdrant-landing/content/documentation/embeddings/jina-embeddings.md index be59a6e2e..45c810039 100644 --- a/qdrant-landing/content/documentation/embeddings/jina-embeddings.md +++ b/qdrant-landing/content/documentation/embeddings/jina-embeddings.md @@ -186,11 +186,12 @@ data = { response = requests.post(url, headers=headers, json=data) query_embedding = response.json()["data"][0]["embedding"] -search_results = client.search( +search_results = client.query_points( collection_name=collection_name, - query_vector=("image_vector", query_embedding), # Search against image vectors + query=query_embedding, + using="image_vector", limit=5 -) +).points for result in search_results: print(f"ID: {result.id}, Score: {result.score}")