Bottlenecks and trade-offs
Which retrieval extension solves a concrete error pattern?
Additional components improve answers only when they suit the collection and questions. Start with a testable retrieval path and compare extensions on the same domain test set.
Starting point The initial search path is testable; the test set now reveals which answerable questions miss their supporting evidence.
Assumptions for the example case
Example design: one operator's internal knowledge, a bounded document collection and existing authentication. Numbers and targets are assumptions. The assistant reads knowledge; tool actions and open-web research are outside scope.
Targeted diagnosis of a retrieval error pattern
Error pattern determines the next search level
- SymptomSupporting passage ranks too lowP-17 is rank 8; the model receives a maximum of 6 passages
- MeasurementTesting retrievalHitRate@10, rank and the 6 supporting passages actually selected
- CauseRanking limits selectionHybrid search finds P-17 but sorts it behind weaker evidence
- ActionCompare RerankingReorder the same 10 candidates; evaluate the top 6 and the answer
- 1Quantify
- 2Classification
- 3Targeted comparisons
Accepted trade-offEvery additional stage adds latency, cost and maintenance.
Appropriate measurementHitRate@10 remains the same for the same candidates. Decisive are rank, selection in the top 6 and fidelity of the answer.
Trade-off: Additional retrieval technology requires a measurable quality gain.
Choose the search path consciously
Keep hybrid search as the starting point
In the first draft, full text and vectors cover exact terms and similar formulations together. The diagnosis therefore first checks weighting, chunking and rights filters on the same test set.
- Trade-off
- Two search signals require tuning and measurement; poor ranking can limit answer quality despite finding the right evidence.
- Reassess
- Check reranking or another search level only if a concrete error pattern remains detectable.
Relational SQL data store with vector search as start
Metadata, rights and search representations can be operated together.
- Trade-off
- Search load shares resources with metadata accesses. Proximity search and rights filters must be tested together.
- Reassess
- Consider dedicated search when measured latency or quality targets remain unmet after optimisation.
Start without a shared answer cache
Answers depend on question, rights, document and pipeline versions.
- Trade-off
- Repeated questions again generate model work.
- Reassess
- Consider caching once repeated patterns are evidenced; permission checks and invalidation must also apply to stored answers.
Relationship search only with suitable questions
An additional graph projection can open up paths over explicit relationships. The first case mainly asks for documented statements.
- Trade-off
- Graph extraction, maintenance and evaluation add work.
- Reassess
- When typical multi-step questions about relationships in the test set fail systematically.
Targeting further bottlenecks
- Model costs and duration
- Limit context, avoid unnecessary generations and compare model variants based on the same questions. A smaller model is only a step forward if it is sufficient.
- Import and large amounts of data
- Optimise worker concurrency and incremental imports first. Sharding or an additional NoSQL store needs an observed storage or access benefit.
Terms in this step
- Reranking
- A second evaluation reorders already found hits. It cannot find any evidence that the first search completely overlooked.
Try it yourself
Choose an error. Note symptom, measurement, cause, variant and accepted disadvantage.
A hint for your attempt
Differentiate exact terms, semantic similarity, and relationship issues. Compare variants on the same test set and under the same rights.
Compare with a possible solution
- Exact terms are missing
- The starting point already uses hybrid search. When expected terms are missed, compare chunking and signal weighting on the same answerable questions. The variant is justified when HitRate@10 rises from below 90% to at least 90% while p95 search latency stays within its target. More irrelevant results and extra tuning effort are the specific trade-off.
- Low ranking
- When expected evidence is in the top 10 but ranked too low, a reranker reorders those same 10 candidates. HitRate@10 cannot improve from this alone; success means a better rank, improved HitRate@6 (hits among the first six) or stronger source fidelity at measured additional latency. The trade-off is extra model cost and waiting time; adopt the extension only with a quality gain.
Apply to your project
What real-world error pattern justifies an additional search level in your system?