Evaluate an answer
The metrics_alignment
endpoint evaluates the correctness, completeness, and alignment of a generated answer with respect to a question and a ground truth answer. 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.
This feature is in public preview.
Authorizations
An API Key is required to call Pinecone APIs. Get yours from the console.
Body
The request for the alignment evaluation.
The question for which the answer was generated.
The generated answer.
The ground truth answer to the question.
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?