Evaluates whether the generated output is factually accurate and adequately addresses the user’s input when compared to the reference answer.
factual_accuracy
metric, the following parameters are required:
input
: The original user query or question that prompted the response.expected_output
: The reference or ground truth answer that the model’s output should be compared against.actual_output
: The response generated by your LLM application.actual_output
is checked for correctness against the expected_output
.