qdrant-relevance-feedback
Skill by truera
Guides an assistant through Qdrant's Relevance Feedback API to improve dense vector search results. It covers weight calibration and two usage patterns for teams weighing RF against reranking.
Install qdrant-relevance-feedback
Built from the published package, never by AI.
git clone --depth 1 https://github.com/truera/trulens /tmp/trulens && mkdir -p ~/.claude/skills && cp -r /tmp/trulens/examples/experimental/EDD/.agents/skills/qdrant-search-quality/search-strategies/relevance-feedback ~/.claude/skills/qdrant-relevance-feedbackRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install qdrant-relevance-feedback in Claude Code
git clone --depth 1 https://github.com/truera/trulens /tmp/trulens && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/trulens/examples/experimental/EDD/.agents/skills/qdrant-search-quality/search-strategies/relevance-feedback ~/.gemini/antigravity-cli/skills/qdrant-relevance-feedbackAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install qdrant-relevance-feedback in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill explains how to use Qdrant's Relevance Feedback (RF) API, which changes the vector search step itself using a small amount of feedback from a reranker or other feedback model. Unlike reranking, which only reorders documents already retrieved, RF can surface documents that the initial ANN search scored too low. A query, a few seed documents with relevance scores, and trained formula weights are passed to the Query Points API with a RelevanceFeedbackQuery type.
The skill describes two patterns. One aims for high top-1 or top-3 quality at lower cost by scoring five seed documents. The other aims for recall in research, legal, medical, or compliance work by scoring a second round of results. It also covers training weights on 50 to 200 real queries with the qdrant-relevance-feedback Python library, and lists anti-patterns to avoid. It is aimed at developers building search who are weighing RF against reranking.
Written from the project's SKILL.md and checked against it.
What it can do
- Weight calibrationTrains the a, b and c formula weights on 50 to 200 real queries, then evaluates them on a separate test set.
- Top-1 and top-3 patternScores five seed documents and uses the RF results directly as final results to limit reranking cost.
- Recall patternSurfaces documents beyond the initial ANN pool, scores them in a second round, and merges results by feedback score.
- Feedback model guidanceExplains what makes a good feedback model, such as monotonic scores and consistent use between training and inference.
What you need
- A Qdrant instance with the Query Points API
- The qdrant-relevance-feedback Python library
- A feedback model that scores query-document pairs, such as a cross-encoder
- 50 to 200 representative real queries for training
Try asking
- Help me improve top-3 precision for my Qdrant search without adding a reranker.
- Train RF formula weights for my Qdrant collection using 100 real queries.
- Show me how to build a RelevanceFeedback query with five seed documents.
Good to know
- Do not use the RF API on sparse vectors.
- Weights must be trained for each use case, feedback model and embedding model, and retrained if these change.
- The top-1 and top-3 pattern performs worse at deeper cutoffs and is not for top-10+ recall.
- The recall pattern has higher latency because it runs two rounds of feedback-model scoring.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: examples/experimental/EDD/.agents/skills/qdrant-search-quality/search-strategies/relevance-feedback/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB
Alternatives to qdrant-relevance-feedback
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
qdrant-relevance-feedback: common questions
When should I use relevance feedback instead of reranking?
The skill suggests RF when a dense retriever is too weak and reranking is being considered, especially for top-1 or top-3 precision at lower scoring cost. It is intended for tasks where relevance correlates with similarity in vector space.
How many seed documents does the RF query need?
The source says at least two seeds are required, with five as the recommended default. Using significantly more than five usually adds noise and scoring cost without clear gains.
Can I change the feedback model after training?
No. The source says the same feedback model must be used in training and inference, because the learned weights depend on its score distribution. Switching models requires retraining.
How do I install qdrant-relevance-feedback?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is qdrant-relevance-feedback free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is qdrant-relevance-feedback safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to qdrant-relevance-feedback?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
