RAGModel EvaluationLocal Models
Before changing your RAG model, test what search retrieves
A practical comparison of keyword, semantic and hybrid retrieval using the same research questions, labeled passages and evidence checks.
Your local research assistant gives an incomplete answer. You try a larger model, rewrite the prompt and ask again. The answer sounds better, but the missing study still never appears.
Before changing the model that writes the answer, inspect what search supplied to it. In retrieval-augmented generation, or RAG, a system first finds material and then asks a model to use it. If the necessary passage never reaches that second step, a more capable writer may still be working from the wrong evidence.
This guide proposes a small, repeatable retrieval review for an academic document collection. The examples are fictional. No search system, embedding model or hardware configuration was benchmarked for this article.
Find where the evidence disappears
Start with a question whose supporting passage you can locate manually. Follow that passage through the workflow: original file, extracted text, indexed segment, search candidate and final context supplied to the answering model. Save the document identifier and passage text at each stage.
A scanned table that never became readable text is an extraction problem. A correct document excluded by a year filter is a filtering problem. A passage found in the candidate list but removed when assembling the prompt is a context-selection problem. These observations call for different changes; a single “wrong answer” label hides them.
Also check whether the collection contains the evidence at all. “The paper is not in this library” and “search missed a paper in this library” should be different outcomes. Decide what the assistant should say when the collection cannot answer, rather than rewarding a plausible answer from elsewhere.
Compare search methods on the same questions
Qdrant's official hybrid-search guide describes complementary retrieval methods. Dense search uses numerical representations of meaning; term-based search emphasizes matching vocabulary. Hybrid search combines candidate lists. An exact instrument name and a question expressed as a paraphrase can place different demands on those methods.
Imagine a fictional literature folder containing a protocol called “Study ZX-41.” A query using that exact identifier might benefit from keyword matching. Another query, “Which project tracked participants after their first semester?”, may require matching a concept expressed differently in the paper. These are proposed test cases, not observed failures of any named model.
Keep the source collection, extraction, filters and question wording unchanged while comparing the search methods. If you change all of them together, an improvement will not tell you which change helped. Begin with the simplest available baseline; adding a component is a hypothesis about improvement, not evidence of it.
Write labels before inspecting the winner
For each evaluation question, record what would count as useful evidence. Name the relevant documents and, where possible, the passages that actually answer it. Include short explanations so another reviewer can understand the judgment. A document on the same broad topic should not receive full credit merely because its title looks promising.
Qdrant's retrieval-relevance documentation describes evaluation using labeled queries and documents. Its distinction is useful here: finding results relevant to a user's question is a different check from whether an approximate index reproduces exact nearest-neighbor results.
Build a mix that resembles your intended work: exact names, paraphrases, narrow methods questions, questions requiring more than one passage and questions the collection cannot answer. Keep the unanswerable cases in a separate reported group. They have no relevant passage to recover, so a recall calculation requiring one should not quietly count them as ordinary retrieval successes or failures.
Use a development group to diagnose problems and a separate held-out group for the final comparison. Save its questions before tuning. A small review can identify concrete defects, but it cannot support a precise universal accuracy claim. Several questions about one paper also provide less independent information than the same number spread across unrelated papers.
Inspect the ranked passages, not just the total
Choose a retrieval depth that matches the intended workflow, and keep it explicit. “Among the first five passages” is a clearer target than “found somewhere.” For answerable questions, one useful measure is the share with at least one supporting passage inside that cutoff. If a question requires two sources, add a separate check for whether both are present.
Here is a hypothetical single-question example. Search A places the supporting passage eighth; Search B places it third. With a five-passage cutoff, B exposes that passage and A does not. With a ten-passage cutoff, both do. The question therefore has no single retrieval outcome independent of the cutoff. This example illustrates scoring only; it is not a performance result.
Count duplicates deliberately. Five overlapping segments from one paper are not five independent sources. Review whether the returned set includes the study version, section and surrounding explanation needed to interpret the passage. If an estimate is separated from the paragraph defining its sample, a relevant fragment may still be insufficient.
Preserve a row per question showing each method's results. Report questions improved, questions worsened and questions unchanged. A net gain can hide losses on the exact identifiers your team uses most often. Keep those losses visible before deciding whether a more complicated search method is worthwhile.
Know what fusion and reranking can change
The official hybrid-query documentation describes Reciprocal Rank Fusion, which combines positions in ranked lists. It also supports staged retrieval, where an initial candidate set is scored again. These mechanisms can alter ordering; they do not create a missing source document.
For your review, save the initial candidates and the final ordering. If a passage is present before reranking and absent afterward, you have a specific stage to investigate. If it never entered the candidates, evaluate that earlier search or its depth before adjusting the later scorer.
Record candidate limits separately from the number of passages eventually given to the answering model. Increasing either may add work or change the evidence mix. Measure search and reranking time alongside quality, using the same machine and workload. Record warm-up conditions, model loading, hardware and versions before making speed claims; a slower first request and a warm repeated request are different conditions.
Return to answer evaluation with the evidence preserved
After selecting a retrieval configuration, test the complete assistant. Qdrant's pipeline-evaluation guide records the question, retrieved context and generated answer together. That record lets you distinguish evidence availability from the model's use of it.
If you now compare answering models, give them the same saved evidence and prompt. Otherwise, a different retrieval result can masquerade as a better generator. DASS's guide to comparing two LLMs explains why retaining results for the same evaluation items matters. It is complementary methodological reading from our family of sites, not a guarantee about a particular assistant.
Then use our citation-support audit to check whether the answer's claims are supported by the actual passages. Retrieval success alone does not establish that the answer is correct or complete.
Before importing a research library, also inspect the local AI data-flow checklist. This proposed review does not require a cloud service, but the tools you choose may use one. Check extraction, embedding and reranking connections as well as the answering model.
The useful outcome is a specific next step: repair extraction, revise a filter, compare retrieval methods, or inspect generation on frozen evidence. Save the failed examples and the configuration that produced them. That gives the next experiment a clear question and makes an attractive answer easier to distinguish from an evidenced improvement.