KNOWLEDGE, EMBEDDINGS & RAG • 136 / 397
Teach models to look up relevant information before answering.
Top-k
Top-k is the number of highest-ranked retrieval results selected for further use.
Think of it like
Think of Top-k like a library system: instead of memorizing every book, find the right shelf and bring only the useful pages to the desk.
Real life
Search engines and recommendation systems use ideas related to Top-k.
SRE lens
Retrieve the top 5 incident chunks rather than feeding 500 results to the LLM.
Remember thisTop-k is the number of highest-ranked retrieval results selected for further use.