Context Recall

Context Recall Metric

Context Recall measures the number of relevant documents or pieces of information that were successfully retrieved. It emphasizes the importance of capturing all important results. A higher recall score indicates that fewer relevant documents were overlooked.

context recall=GT claims that can be attributed to contextNumber of claims in GT\text{context recall} = {|\text{GT claims that can be attributed to context}| \over |\text{Number of claims in GT}|}

Key Points

  • Focus: Context Recall is primarily concerned with ensuring that no significant information is missed.

  • Interpretation: Higher recall means that more relevant documents have been retrieved, while lower recall indicates that important documents were left out.

  • Comparison Reference: Calculating context recall requires a reference set of relevant documents to compare against, ensuring an accurate assessment of what has been retrieved.

In summary, context recall is crucial for applications where catching all relevant information is essential.

Example Code: Context Recall Evaluation

This example demonstrates how to compute the Context Recall metric using the ContextRecallEvaluator with the OpenAI language model.

Last updated