AGENT SKILL

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.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
connection-and-transport
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Configure qdrant-client server and cloud connections, REST versus gRPC transport, authentication headers, timeouts, pooling, and connection lifecycle without relying on local mode.
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

Connection and Transport

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.
  • Collection, point, search, query, or payload calls after the client exists: use client-operations.
  • AsyncQdrantClient remote lifecycle and async token-provider details: use async-client.
  • Cloud inference or embedding model configuration: use inference.
  • Upload helpers, batch migration, or parallel ingestion: use migration-and-upload.
  • REST/gRPC model conversion types and generated schemas: use models-and-conversions.

Start Here

  1. Choose the address style from references/connection-reference.md: url for complete endpoints and Qdrant Cloud, or host plus port for simple server endpoints.
  2. Set check_compatibility=False only for offline config validation, tests without a server, or startup paths where the background server-version probe is intentionally skipped.
  3. Use 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.
  4. Use 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.
  5. Close remote clients with client.close() when the process, worker, or request scope ends. Do not reuse a closed client.

Common Patterns

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

Raw Access and Lifecycle

  • 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.
  • Use one client per process, worker, tenant, or credential scope rather than rebuilding clients for every request.

References

  • 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.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351