179 questions
No questions match those filters.
Your team wants to raise top-k retrieval from 5 to 20 b...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansThe tension between retrieval recall and end-to-end accuracy is a common trade-off in RAG systems. Increasing the top-k parameter from 5 to 20 will mathematically improve recall@k, as more potentially relevant documents are surfaced to the generator. However, the documents retrieved at positions 6 through 20 are often of lower relevance than the top 5. If the generator is sensitive to noise or has a limited context window, including these lower-quality documents can degrade the quality of the final output. To settle this, the team should conduct an A/B test measuring end-to-end metrics rather than relying solely on retrieval-stage recall.