Skip to content

docs(embeddings): use current query_points API in OpenAI example#2455

Open
midegdugarova wants to merge 1 commit into
qdrant:masterfrom
midegdugarova:docs-openai-query-points
Open

docs(embeddings): use current query_points API in OpenAI example#2455
midegdugarova wants to merge 1 commit into
qdrant:masterfrom
midegdugarova:docs-openai-query-points

Conversation

@midegdugarova

Copy link
Copy Markdown

What

The Searching for documents with Qdrant example on embeddings/openai.md uses client.search(..., query_vector=...), which is deprecated in recent qdrant-client releases in favor of client.query_points(..., query=...). This PR updates that single example to the current API.

-client.search(
+client.query_points(
     collection_name=collection_name,
-    query_vector=openai_client.embeddings.create(
+    query=openai_client.embeddings.create(

Why

  • query_points is the supported replacement for search; no behavior change.
  • Consistency: the sibling embedding page embeddings/cohere.md already uses client.query_points(...), so this brings the OpenAI page in line with the rest of the section.

Verified against the current file on master.

@netlify

netlify Bot commented Jun 25, 2026

Copy link
Copy Markdown

Deploy Preview for condescending-goldwasser-91acf0 ready!

Name Link
🔨 Latest commit c118d54
🔍 Latest deploy log https://app.netlify.com/projects/condescending-goldwasser-91acf0/deploys/6a3d7ebbe9e92b00084add0f
😎 Deploy Preview https://deploy-preview-2455--condescending-goldwasser-91acf0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant