Evaluates whether the generated answer is relevant to the user’s input in a RAG pipeline.
actual_output
addresses the user’s original query (input
). It helps determine whether the model is generating responses that are focused, appropriate, and directly useful in the context of the question.
This is essential for ensuring the model doesn’t drift into unrelated topics or provide verbose but irrelevant information.
answer_relevancy
metric, the following parameters are required:
input
: The user’s query or instruction.actual_output
: The response generated by your LLM application.input
.actual_output
appropriately and directly addresses that need.