计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
connection-and-transport【效率与协作】Configure qdrant-client server and cloud connections, REST versus gRPC transport, authentication headers, timeouts, pooling, and connection lifecycle without relying on local mode.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task is about constructing a QdrantClient or QdrantRemote for a running Qdrant server or Qdrant Cloud cluster, choosing REST or gRPC transport, setting URL/host/prefix details, adding authentication, validating timeouts/pooling options, inspecting raw clients, or closing a client cleanly.
Route elsewhere when the task is primarily about:
:memory: or file-backed local storage: use local-mode.client-operations.AsyncQdrantClient remote lifecycle and async token-provider details: use async-client.inference.migration-and-upload.models-and-conversions.references/connection-reference.md: url for complete endpoints and Qdrant Cloud, or host plus port for simple server endpoints.check_compatibility=False only for offline config validation, tests without a server, or startup paths where the background server-version probe is intentionally skipped.prefer_grpc=True for API methods that support gRPC when low latency or high-throughput server access matters; keep REST as the safe default for full API coverage.api_key for Qdrant Cloud and API-key deployments. Do not duplicate api-key in headers; the constructor intentionally overrides that header with api_key.client.close() when the process, worker, or request scope ends. Do not reuse a closed client.from qdrant_client import QdrantClient
client = QdrantClient(url="http://localhost:6333")
from qdrant_client import QdrantClient
client = QdrantClient(
url="https://example-cluster.region.cloud.qdrant.io:6333",
api_key="<qdrant-api-key>",
headers={"x-trace-id": "request-123"},
)
from qdrant_client import QdrantClient
client = QdrantClient(
host="qdrant.internal",
port=6333,
grpc_port=6334,
prefer_grpc=True,
timeout=30,
check_compatibility=False,
)
For safe, no-network configuration checks, run the bundled probe:
python sub-skills/connection-and-transport/scripts/transport_config_probe.py --url http://localhost:6333 --prefix api/v1
client.http exposes the REST API wrapper for direct REST calls when a high-level method is unavailable.client.grpc_points, client.grpc_collections, client.grpc_snapshots, and client.grpc_root initialize gRPC channels lazily on first access.client.close() closes HTTP resources and any initialized gRPC channel pool; accessing remote gRPC after close can raise RuntimeError.references/connection-reference.md covers constructor decisions, examples, REST/gRPC selection, authentication, context headers, pooling, raw access, and close lifecycle.references/troubleshooting.md covers compatibility warnings, insecure auth warnings, prefix conflicts, unsupported gRPC compression, closed clients, pool/limits conflicts, and token-provider pitfalls.