📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is top-k retrieval in RAG?

A. Retrieving only the k-th document
B. Retrieving the k most relevant document chunks for the query ✅
C. Generating k answers at once
D. Keeping k models in memory

Correct Answer: B. Retrieving the k most relevant document chunks for the query

Explanation

Top-k limits the context to the most relevant passages, balancing evidence and context length.