Measures the quality of your RAG pipeline’s retriever by evaluating the overall relevance of the information presented in your retrieval_context for a given input.
contextual_relevancy
metric, the following parameters are required:
input
: The user’s query or instruction.actual_output
: The response generated by your LLM application. (While not directly scored in this metric, it’s often part of the test case data).retrieval_context
: A list of documents or text chunks retrieved by your RAG system in response to the input
.retrieval_context
to identify individual statements or key pieces of information.retrieval_context
, the LLM determines if that statement is relevant to the original input
.retrieval_context
.