qdrant
БесплатноБез исполняемых скриптовНе проверенQdrant is an open-source vector database written in Rust for similarity search over embeddings, with payload filtering, named and sparse vectors, hybrid…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Qdrant — Vector Search Engine
Overview
Qdrant stores points: an ID, one or more vectors and a JSON payload. You search by vector and narrow the result with payload filters. It listens on 6333 (REST) and 6334 (gRPC). This skill was checked against server v1.20.0 and the clients @qdrant/js-client-rest 1.20.0 and qdrant-client 1.20.0 (October 2026).
The most important change for older code: client.search(), client.recommend() and client.discover() are gone from the JS client (search is not a function), and Python's search() is gone too. Everything goes through one universal call, query() in JS and query_points() in Python.
Instructions
- Start a server locally and bind it to loopback. A bare
docker run -p 6333:6333exposes an unauthenticated API on every interface:
docker run -d --name qdrant -p 127.0.0.1:6333:6333 -p 127.0.0.1:6334:6334 \
-v qdrant_storage:/qdrant/storage qdrant/qdrant:v1.20.0
npm install @qdrant/js-client-rest # or: pip install qdrant-client
- Create a collection. The vector size must match your embedding model (1536 for OpenAI
text-embedding-3-small, 384 forall-MiniLM-L6-v2):
import { QdrantClient } from "@qdrant/js-client-rest";
const client = new QdrantClient({ url: "http://127.0.0.1:6333", apiKey: process.env.QDRANT_API_KEY });
await client.createCollection("products", {
vectors: { size: 1536, distance: "Cosine" },
});
- Create payload indexes for every field you filter on, before loading data:
await client.createPayloadIndex("products", { field_name: "category", field_schema: "keyword", wait: true });
await client.createPayloadIndex("products", { field_name: "price", field_schema: "float", wait: true });
- Upsert points. IDs must be unsigned integers or UUIDs. A string such as
"prod-1"is rejected with HTTP 400, so keep your own key in the payload:
await client.upsert("products", {
wait: true,
points: [
{ id: 1, vector: keyboardEmbedding,
payload: { sku: "prod-1", name: "Wireless Keyboard", price: 79.99, category: "electronics", in_stock: true } },
{ id: "6f1c2a52-8c1e-4a53-9f43-0d6b6f5b2a10", vector: hubEmbedding,
payload: { sku: "prod-2", name: "USB-C Hub", price: 49.99, category: "accessories", in_stock: true } },
],
});
- Search with
query(). The result is{ points: [...] }, not a bare array:
const { points } = await client.query("products", {
query: queryEmbedding,
limit: 10,
with_payload: true,
score_threshold: 0.7,
filter: {
must: [
{ key: "in_stock", match: { value: true } },
{ key: "price", range: { lte: 100 } },
],
},
});
points.forEach((p) => console.log(p.payload?.name, p.score.toFixed(3)));
Python equivalent:
from qdrant_client import QdrantClient, models
client = QdrantClient(url="http://127.0.0.1:6333")
res = client.query_points(
"products", query=query_embedding, limit=10,
query_filter=models.Filter(must=[models.FieldCondition(key="in_stock", match=models.MatchValue(value=True))]),
)
- Other query modes use the same call. Pass a point ID as
queryfor "more like this point", or arecommendobject with positive and negative examples:
const similar = await client.query("products", { query: 1, limit: 5 }); // excludes point 1 itself
const rec = await client.query("products", {
query: { recommend: { positive: [1, 3], negative: [7] } }, limit: 5,
});
const grouped = await client.queryGroups("products", {
query: queryEmbedding, group_by: "category", group_size: 1, limit: 5,
});
- Page through points with
scroll, passingnext_page_offsetback asoffsetuntil it is null:
const page = await client.scroll("products", { limit: 100, with_payload: true, with_vector: false });
Examples
Example 1: "Search articles by title or by body"
Named vectors keep several embeddings on one point. Pick one with using:
await client.createCollection("articles", {
vectors: {
title: { size: 384, distance: "Cosine" },
content: { size: 1536, distance: "Cosine" },
},
});
const { points } = await client.query("articles", { query: titleEmbedding, using: "title", limit: 10 });
Result: up to 10 articles ranked by title similarity, each with id and score.
Example 2: "Hybrid search: keywords plus meaning"
Add a sparse vector (for example BM25 or SPLADE weights computed by your own code) and fuse both rankings with reciprocal rank fusion in a single request:
await client.createCollection("docs", {
vectors: { dense: { size: 1536, distance: "Cosine" } },
sparse_vectors: { keywords: { modifier: "idf" } },
});
const { points } = await client.query("docs", {
prefetch: [
{ query: denseEmbedding, using: "dense", limit: 50 },
{ query: { indices: [3, 7, 912], values: [1.0, 0.6, 0.3] }, using: "keywords", limit: 50 },
],
query: { fusion:
Установить qdrant в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл qdrant?
Qdrant is an open-source vector database written in Rust for similarity search over embeddings, with payload filtering, named and sparse vectors, hybrid search and quantization. Use when someone asks to set up Qdrant, build semantic search or RAG retrieval, store embeddings, filter vector search by metadata, combine dense and keyword search, or move from the removed search() and recommend() calls to query().
Как установить скилл qdrant?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл qdrant запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub