Lab 4: Context Precision & Recall
Did retrieval find the right chunks? Precision checks for noise. Recall checks for missing information.
๐Context Precision
Of what we retrieved, how much was actually useful? Irrelevant chunks dilute the context and confuse the LLM.
Precision = useful_chunks / total_chunks
๐กContext Recall
Of everything needed to answer, how much did we find? Missing facts lead to incomplete or hallucinated answers.
Recall = covered_sentences / total_sentences
Select a Question
Retrieved Chunks (5 chunks)
1NovaCorp offers 14 days of fully paid paternity leave. To apply, employees must submit Form W-77B to the Culture Team at hr-culture@novacorp.internal.
2Form W-77B must be submitted at least 2 weeks before the expected date of birth. Paternity leave must be taken within 3 months of the child's birth.
3Part-time employees are eligible for pro-rated paternity leave.
4NovaCorp offers 26 weeks of fully paid maternity leave. Maternity leave begins 2 weeks before the expected delivery date automatically.
5Performance reviews are conducted twice a year โ in June and December. Ratings of 4 and 5 are eligible for bonuses ranging from 10% to 30% of annual salary.