RAG Optimization · Re-ranking · Bài 2/5
Maximal Marginal Relevance (MMR)
The most similar documents are not always the best set - five near-identical paragraphs waste the context window. MMR balances relevance to the question with diversity from what is already selected, controlled by lambda (usually 0.5). Use a cross-encoder for precise answers to hard questions, MMR for broad answers covering many aspects.
Nội dung bài học, quiz và tab Command mở trên site sau khi đăng nhập và được admin cấp quyền học AIOps Peach.