技能 人工智能 Qdrant客户端SDK:向量检索服务

Qdrant客户端SDK:向量检索服务

v20260420
qdrant-clients-sdk
本SDK集提供了Qdrant数据库在多种主流编程语言(如Python, Java, Go等)的官方客户端接口。它允许开发者轻松地将高性能的向量搜索功能集成到应用程序中。无论您是构建语义搜索系统、推荐引擎,还是任何需要基于相似性检索的AI应用,本工具都能提供完整的解决方案。
获取技能
139 次下载
概览

Qdrant Clients SDK

Qdrant has the following officially supported client SDKs:

API Reference

All interaction with Qdrant can happen through the REST API or gRPC API. We recommend using the REST API if you are using Qdrant for the first time or working on a prototype.

Code examples

To obtain code examples for a specific client and use case, you can send a search request to the library of curated code snippets for the Qdrant client.

curl -X GET "https://snippets.qdrant.tech/search?language=python&query=how+to+upload+points"

Available languages: python, typescript, rust, java, go, csharp

Response example:


## Snippet 1

*qdrant-client* (vlatest) — https://search.qdrant.tech/md/documentation/manage-data/points/

Uploads multiple vector-embedded points to a Qdrant collection using the Python qdrant_client (PointStruct) with id, payload (e.g., color), and a 3D-like vector for similarity search. It supports parallel uploads (parallel=4) and a retry policy (max_retries=3) for robust indexing. The operation is idempotent: re-uploading with the same id overwrites existing points; if ids aren’t provided, Qdrant auto-generates UUIDs.

client.upload_points(
    collection_name="{collection_name}",
    points=[
        models.PointStruct(
            id=1,
            payload={
                "color": "red",
            },
            vector=[0.9, 0.1, 0.1],
        ),
        models.PointStruct(
            id=2,
            payload={
                "color": "green",
            },
            vector=[0.1, 0.9, 0.1],
        ),
    ],
    parallel=4,
    max_retries=3,
)

Default response format is markdown, if snippet output is required in JSON format, you can add &format=json to the query string.

信息
Category 人工智能
Name qdrant-clients-sdk
版本 v20260420
大小 2.94KB
更新时间 2026-04-28
语言