Evaluate an answer
Evaluate the correctness and completeness of a response from an assistant or a RAG system. The correctness and completeness are evaluated based on the precision and recall of the generated answer with respect to the ground truth answer facts. Alignment is the harmonic mean of correctness and completeness.
For guidance and examples, see Evaluate answers.
Authorizations
Body
The request for the alignment evaluation.
The question for which the answer was generated.
"What is the capital city of Spain?"
The generated answer.
"Barcelona."
The ground truth answer to the question.
"Madrid."
Response
The response for the alignment evaluation.
The metrics returned for the alignment evaluation.
The reasoning behind the alignment evaluation.
Token counts for the input prompt and completion.
Was this page helpful?