技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
qdrant-client【数据与研究】Use the Python qdrant-client package for Qdrant vector database connections, local mode, sync and async operations, inference inputs, uploads, migrations, and REST/gRPC model conversion workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task involves the Python qdrant-client package, QdrantClient, AsyncQdrantClient, qdrant_client.models, local mode, Qdrant Cloud/server connections, FastEmbed or Cloud inference inputs, bulk upload, migration, or REST/gRPC model conversion.
pip install qdrant-client; add exactly one optional inference extra only when needed: qdrant-client[fastembed] for CPU FastEmbed or qdrant-client[fastembed-gpu] for GPU FastEmbed.from qdrant_client import QdrantClient, AsyncQdrantClient, models.QdrantClient(":memory:") for deterministic local examples and tests that do not require a running Qdrant server.QdrantClient(url="http://localhost:6333") or a Qdrant Cloud URL plus api_key for remote server workflows.references/repo-provenance.md before deciding whether this skill is current for a checkout, and read references/troubleshooting.md for cross-cutting install/import/service failures.scripts/qdrant_client_smoke.py --mode local after installation when you need a safe import/local/async/conversion check.sub-skills/client-operations/SKILL.md for sync QdrantClient collection, point, query, payload, index, alias, snapshot, facet, matrix search, batching, and cluster-adjacent method choices.sub-skills/local-mode/SKILL.md for QdrantClient(":memory:"), persistent local stores, local dense/sparse/named/multivector queries, local locks, and local-to-server migration boundaries.sub-skills/connection-and-transport/SKILL.md for url, host, prefix, Qdrant Cloud api_key, REST versus gRPC, auth headers, compatibility checks, timeouts, pooling, raw clients, and close lifecycle.sub-skills/async-client/SKILL.md for AsyncQdrantClient, awaited collection/point/query/payload/snapshot operations, async local mode, and async lifecycle pitfalls.sub-skills/inference/SKILL.md for FastEmbed local inference, Qdrant Cloud remote inference, models.Document, models.Image, dense/sparse/hybrid model helpers, and optional dependency troubleshooting.sub-skills/migration-and-upload/SKILL.md for upload_collection, upload_points, batching, parallel, wait, prefer_grpc, retry behavior, and migrate workflows.sub-skills/models-and-conversions/SKILL.md for qdrant_client.models, strict pydantic model construction, REST/gRPC structures, RestToGrpc, GrpcToRest, filters, query requests, sparse vectors, and conversion debugging.from qdrant_client import QdrantClient, AsyncQdrantClient, models
client = QdrantClient(":memory:")
client.create_collection(
collection_name="demo",
vectors_config=models.VectorParams(size=4, distance=models.Distance.COSINE),
)
client = QdrantClient(
url="https://example-cluster.region.cloud.qdrant.io:6333",
api_key="<api-key>",
)
client.upload_collection(
collection_name="demo",
vectors=[[0.1, 0.2, 0.3, 0.4]],
payload=[{"source": "example"}],
ids=[1],
wait=True,
)
connection-and-transport, then use client-operations or migration-and-upload for calls.models.Document and models.Image as inference routes. They may require FastEmbed locally or cloud_inference=True remotely.from qdrant_client import models for user-facing code instead of importing generated REST or gRPC modules directly.scripts/qdrant_client_smoke.py checks importability, local create/upsert/query, REST-to-gRPC conversion, and optional async local behavior without a server.references/repo-provenance.md to compare this skill with a source checkout before refreshing.