본문으로 건너뛰기
cccskills
무료GitHub에 공개

qdrant-search

Semantic search over Qdrant Cloud collections using the Python client. Covers vector search, filtered search, prefetch+RRF fusion, group API, recommend API, discovery API, batch queries, scroll, and payload indexing. Use when building search features, adding new query types, or working with qdrant-client.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Qdrant Search Patterns

All projects use qdrant-client with 768-dim vectors from nomic-embed-text.

Client Setup

import os
from qdrant_client import QdrantClient, models

client = QdrantClient(
    url=os.getenv("QDRANT_URL"),
    api_key=os.getenv("QDRANT_API_KEY"),
)

Vector Search (Query API)

results = client.query_points(
    collection_name="DocumentChunk_text",
    query=embedding_vector,  # list[float], 768-dim
    limit=10,
    with_payload=True,
)
for point in results.points:
    print(point.id, point.score, point.payload)

Filtered Search

results = client.query_points(
    collection_name="DocumentChunk_text",
    query=embedding_vector,
    query_filter=models.Filter(
        must=[
            models.FieldCondition(
                key="vendor",
                match=models.MatchValue(value="Acme"),
            )
        ]
    ),
    limit=10,
)

Prefetch + RRF Fusion

Multi-stage retrieval combining multiple query vectors:

results = client.query_points(
    collection_name="DocumentChunk_text",
    prefetch=[
        models.Prefetch(query=vector_a, limit=20),
        models.Prefetch(query=vector_b, limit=20),
    ],
    query=models.FusionQuery(fusion=models.Fusion.RRF),
    limit=10,
)

Group API

Group results by a payload field:

results = client.query_points_groups(
    collection_name="DocumentChunk_text",
    query=embedding_vector,
    group_by="vendor",
    limit=5,
    group_size=3,
)

Recommend API

Find similar items by point IDs:

results = client.recommend(
    collection_name="DocumentChunk_text",
    positive=[point_id_1, point_id_2],
    negative=[point_id_3],
    limit=10,
    strategy=models.RecommendStrategy.BEST_SCORE,
)

Discovery API

Guided exploration with context pairs:

results = client.discover(
    collection_name="DocumentChunk_text",
    target=point_id,
    context=[
        models.ContextPair(positive=pos_id, negative=neg_id),
    ],
    limit=10,
)

Batch Query API

Multiple queries in a single request:

results = client.query_batch_points(
    collection_name="DocumentChunk_text",
    requests=[
        models.QueryRequest(query=vector_1, limit=5),
        models.QueryRequest(query=vector_2, limit=5),
    ],
)

Scroll API

Bulk retrieval without ranking:

records, next_offset = client.scroll(
    collection_name="DocumentChunk_text",
    limit=100,
    with_payload=True,
    with_vectors=True,
)
# Paginate with offset=next_offset

Payload Indexing

Create indexes for fast filtering:

client.create_payload_index(
    collection_name="DocumentChunk_text",
    field_name="vendor",
    field_schema=models.PayloadSchemaType.KEYWORD,
)

# Full-text index
client.create_payload_index(
    collection_name="DocumentChunk_text",
    field_name="text",
    field_schema=models.TextIndexParams(
        type="text",
        tokenizer=models.TokenizerType.WORD,
        min_token_len=2,
        max_token_len=15,
        lowercase=True,
    ),
)

Cloud Inference (server-side embeddings)

No local model needed — Qdrant embeds on the server:

from qdrant_client.http.models import Document

client = QdrantClient(url=QDRANT_URL, api_key=QDRANT_API_KEY, cloud_inference=True)

results = client.query_points(
    collection_name="my_collection",
    query=Document(text="search query", model="Qdrant/Qwen/Qwen3-Embedding-0.6B"),
    limit=10,
)

Warning: Cloud inference uses a different embedding model. Existing collections use 768-dim nomic-embed-text vectors — you cannot mix models in the same collection without re-embedding all data.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use at a cognee hackathon. Watches the participant's experience with cognee throughout the session — errors, slowness, confusion, workarounds, and signs of frustration in how they work with you — and keeps one private feedback file they send to the cognee team at the end.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

topoteretes/cognee-hackathons112026년 10월 18일 업데이트

Use at the Mem Off hackathon. Keeps a running, evidence-backed report on how the participant's memory system performed for their coding agent during the day — what the harness measured, what cognee-report's scorecard says, what was recalled and whether it helped — in ./memoff-report.md and ./memoff-report.json. The report is submitted together with the action results; it never contains quotes, keys, data or names.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

topoteretes/cognee-hackathons112026년 10월 18일 업데이트

PR Rescue

무료

Use when reviewing, fixing, or verifying a pull request. Focus on correctness regressions, missing tests, permission mistakes, unsafe behavior, and minimal fixes.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

topoteretes/cognee-hackathons112026년 10월 18일 업데이트

Build spend analytics and dashboards from Qdrant vector data. Covers bulk scroll extraction, aggregation patterns, vendor grouping, and Chart.js visualization. Use when building analytics features, aggregating procurement data, or creating dashboards.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

topoteretes/cognee-hackathons112026년 10월 18일 업데이트

Detect anomalies in procurement data using Qdrant vector operations. Covers centroid-based outlier detection, near-duplicate finding via batch recommend, amount z-score analysis, and vendor variance scoring. Use when building anomaly detection, fraud detection, or data quality features.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

topoteretes/cognee-hackathons112026년 10월 18일 업데이트

topoteretes의 스킬 모두 보기

이 스킬의 문제 신고