Approximate nearest neighbour search trades a little accuracy for speed, and recall measures how much it keeps. The honest test is to run the same queries with exact search and with the approximate index, then count how many of the exact top results the approximate run found. If recall is low, the index settings need tuning.
Checked on 2026-11-29. We did not run any tool for this guide. Every result below is an expected result, marked UNTESTED, for you to confirm on your own files.
Prerequisites
- A vector index with an approximate search setting
- A way to run exact search on the same vectors
- Ten queries with known good matches
Steps
1. Run exact search first
Run the ten queries with exact search and save the top five results for each.
Expected result: Fifty exact results are saved, five per query.
2. Run approximate search
Run the same ten queries with the approximate index and save the top five results for each.
Expected result: Fifty approximate results are saved, five per query.
3. Count the overlap
For each query, count how many of the exact top five appear in the approximate top five. Divide by fifty for overall recall.
Expected result: A recall number between 0 and 1 exists, for example 0.92.
4. Tune if recall is low
If recall is under 0.90, raise the search setting that checks more candidates, then repeat the test.
Expected result: A tuning change is made and the test is repeated, or recall is accepted and written down.
Worked example
A practice index with 200 vectors was tested on four queries. The approximate run missed one result out of twenty.
| Query | Exact top 5 | Found by approx |
|---|---|---|
| Holiday policy | 5 | 5 |
| Sick pay | 5 | 4 |
| Remote work | 5 | 5 |
| Expenses | 5 | 5 |
| Totals | 20 | 19 |
Expected result: The approximate run finds 19 of 20 exact results, a recall of 0.95, so the index settings are kept (UNTESTED – confirm it yourself.)
Verdict table
| Check | Expected result | Pass? |
|---|---|---|
| Run exact search first | Fifty exact results are saved, five per query. | – |
| Run approximate search | Fifty approximate results are saved, five per query. | – |
| Count the overlap | A recall number between 0 and 1 exists, for example 0.92. | – |
| Tune if recall is low | A tuning change is made and the test is repeated, or recall is accepted and written down. | – |
Limits
- Recall on ten queries is a small sample; test more queries before a big index change.
- Faster settings usually lower recall, so record both speed and recall when you tune.
Sources
- RAG Evaluation with Ragas – checked 2026-11-29
- RAG Evaluation with RAGAS: Measuring Faithfulness, Context Precision, and Recall in Production – checked 2026-11-29
- RAG Evaluation Metrics (NVIDIA NeMo Helix docs) – checked 2026-11-29
