视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
inference【文档与办公】Use qdrant-client inference with FastEmbed local embeddings or Qdrant Cloud remote inference for Document, Image, dense, sparse, and hybrid workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task involves qdrant-client inference inputs or model helpers: models.Document, models.Image, models.InferenceObject, local FastEmbed inference, Qdrant Cloud remote inference, dense/sparse/hybrid setup, get_embedding_size, vector parameter helpers, supported-model catalogs, schema inspection, or diagnosing optional inference dependencies.
references/inference-workflows.md for local FastEmbed and remote Cloud inference recipes, Document/Image examples, dense/sparse/hybrid collection setup, and deprecated add, query, and query_batch notes.references/model-and-schema-reference.md for list_*_models, get_embedding_size, get_fastembed_vector_params, get_fastembed_sparse_vector_params, get_vector_field_name, get_sparse_vector_field_name, and inference schema parser behavior.references/troubleshooting.md when FastEmbed is missing, a sparse model has no fixed dense size, a model is unsupported, GPU extras conflict, CUDA/providers options conflict, remote images fail, or model downloads/cache access fail.scripts/check_inference_optional_deps.py to report whether fastembed is importable and to list supported model catalogs when listing is available without downloading model weights.../client-operations/SKILL.md for core create_collection, upsert, upload_collection, query_points, query_batch_points, filters, payloads, and result handling after the inference input objects are chosen.../connection-and-transport/SKILL.md for Qdrant Cloud url, api_key, TLS, REST/gRPC transport, headers, timeouts, and authentication. This sub-skill only covers cloud_inference=True semantics.../async-client/SKILL.md for AsyncQdrantClient parity and awaitable methods; the same inference input objects and helper concepts apply there.../models-and-conversions/SKILL.md for general generated model basics, REST/gRPC conversion, and low-level schema typing not specific to inference.../migration-and-upload/SKILL.md for bulk ingestion tuning once vectors or inference objects are ready for upload.upsert, upload_collection, query_points, and query_batch_points; treat add, query, and query_batch as deprecated compatibility helpers.qdrant-client[fastembed] for CPU or qdrant-client[fastembed-gpu] for GPU.QdrantClient(":memory:") and make clear that embedding calls require FastEmbed and may download model weights.cloud_inference=True on a remote Qdrant Cloud client; local :memory: mode cannot use Cloud inference.Local dense text inference with regular methods:
from qdrant_client import QdrantClient, models
client = QdrantClient(":memory:")
model_name = "sentence-transformers/all-MiniLM-L6-v2"
client.create_collection(
"docs",
vectors_config=models.VectorParams(
size=client.get_embedding_size(model_name),
distance=models.Distance.COSINE,
),
)
client.upsert(
"docs",
points=[
models.PointStruct(
id=1,
vector=models.Document(text="Qdrant supports local inference", model=model_name),
payload={"source": "note"},
)
],
)
hits = client.query_points(
"docs",
query=models.Document(text="local embedding search", model=model_name),
limit=1,
).points
Remote Cloud inference uses the same models.Document and models.Image inputs after the client is constructed with cloud_inference=True.
get_fastembed_vector_params() and get_fastembed_sparse_vector_params().get_embedding_size() as if they had fixed dense vector dimensions.