Knowledge base retrieval release review
Which support questions got harder to answer after changing your retriever or chunking strategy? Get a question-by-question comparison and a list of fixes to test before release.
US$249 pilot fee · One knowledge base · Two versions · Up to 30 labeled questions
Use paired retrieval rankings or the sources shown with each answer.
Worked example: same hit count, cancellation policy lost
Across six synthetic questions, both versions hit 4 of 6 with MRR@3 of 0.583. The returns policy moves to first on Q1, while the cancellation policy drops from first to fourth on Q6. If cancellation is a release requirement, retest Q6 before rollout.
| Query | Baseline | Candidate |
|---|---|---|
| Q1 | Miss | 1 |
| Q2 | 1 | 2 |
| Q3 | 1 | 1 |
| Q4 | Miss | Miss |
| Q5 | 2 | 1 |
| Q6 | 1 | Miss |
Put the script alongside the paired rankings and run the release check with Python 3 in CI.
python3 score.py cases.json --release-gate > review.jsonSet must_pass to true for at least one critical query. The script writes the per-query report and exits with code 3 if the candidate misses any of them. The sample exits with code 3 because Q6 misses.
Prepare Dify, RAGFlow or LangSmith rankings
Pair your saved retrieval outputs and assign the same de-identified ID to the same document across versions. For LangSmith, choose comparable retriever spans. The converter reads document_id from each document’s metadata by default, and the example shows how to choose another metadata key. It runs locally and outputs de-identified IDs, ranked distinct documents and must-pass flags.
python3 prepare-rankings.py langsmith-ranking-export-example.json --top-k 10 > paired-rankings.jsonImport paired-rankings.json into the self-check below. To measure at K=5 or K=10, export rankings through that depth for both versions. The converter defaults to three.
Check your own rankings
Upload JSON or paste a table for 1–30 questions (up to 256 KB). Use de-identified IDs and optionally mark critical questions with must_pass. Data and results are processed in this browser page.
Paste rankings from a spreadsheet
Copy these five columns, including the header. Separate document IDs with commas and keep a ranking cell empty when that version has no results. Enter TRUE for must-pass questions or FALSE for the others.
id relevant baseline candidate must_pass Q01 D01 D01,D02 D02,D01 TRUE
Review the sources shown with each answer
If your platform shows sources alongside answers, provide the sources observed in each version and the sources agreed in advance. We identify missing sources per question and check must-pass cases. This review measures visible source coverage. Evaluate answer accuracy and search ranking separately.
In the synthetic example, both versions cover every required source for one question. The candidate loses the cancellation policy on must-pass Q01.
python3 score.py source-coverage-example.json --source-coverage --release-gate > source-review.jsonWhat you receive
Provide authorized, de-identified query and document IDs, plus rankings or observed answer sources for both versions. Together we agree on one evaluation method and identify must-pass questions.
You receive per-query JSON, an offline scoring script and a human-reviewed one-page release memo. The memo identifies regressions, shared misses and retest priorities. Answer correctness needs separate evaluation.
Once scope, scheduling, payment terms and inputs are agreed, delivery takes two business days. One rerun after label corrections is included. The initial enquiry is free.
Request availability for the US$249 pilot
Tell us your release date, question count and whether you have rankings or answer-source lists. For this enquiry, keep source text and credentials in your own environment.