mcpField
Q
qdrant-clients-sdk

qdrant-clients-sdk

github.com/qdrantデータ・データベース2651.8k 回インストール1 日前に更新
リポジトリ

qdrant-clients-sdk について

QdrantのクライアントSDK資料とコード例を探すスキルです。6言語の公式SDKとAPIを扱い、言語や用途を指定してスニペットを検索する方法を案内します。

主な機能

  1. 01対応クライアントSDKの一覧
  2. 026つのプログラミング言語に対応
  3. 03REST APIとgRPC APIの説明
  4. 04整理済みコードスニペットの検索
  5. 05MarkdownまたはJSON形式の取得

活用シーン

  1. 01Qdrant SDKの選定
  2. 02クライアントのインストールコマンド確認
  3. 03Qdrantの作業例コードの検索
  4. 04例をJSON形式で取得

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/qdrant/skills --skill qdrant-clients-sdk

インストール後、Claude Code で/qdrant-clients-sdkを入力して読み込まれたか確認します。

詳細

Qdrant クライアント SDK

Qdrant では、以下のクライアント SDK が公式にサポートされています。

API リファレンス

Qdrant とのすべてのやり取りは、REST API または gRPC API を介して行えます。Qdrant を初めて使用する場合や、プロトタイプを作成する場合は、REST API の使用をおすすめします。

コード例

特定のクライアントやユースケースのコード例を取得するには、Qdrant クライアント向けに厳選されたコードスニペットのライブラリに検索リクエストを送信します。

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

利用可能な言語:python、typescript、rust、java、go、csharp

レスポンスの例:


## Snippet 1

*qdrant-client* (vlatest) — https://skills.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,
)

デフォルトのレスポンス形式は Markdown です。スニペットを JSON 形式で出力する場合は、クエリ文字列に &format=json を追加できます。

コメント