Accesses if relevant nodes in the retrieved context are prioritized over irrelevant ones for a specific input.
This evaluator uses weighted cumulative precision (WCP) which prioritizes the relevance of top-ranked context nodes and rewards correct ordering. This approach is critical because LLMs tend to focus more on earlier context nodes, and incorrect ranking can lead to hallucinations.
input
: The original user querycontext
: List of context chunks retrieved for the responseexpected_output
: The expected response that should be generatedResult
: Value in the continuous range [0, 1]Reasoning
: Detailed explanation of precision assessment