Skip to main content
Evaluate responses from an assistant or other RAG system to measure their correctness and completeness against a ground truth answer.

Evaluate answers with the API or an SDK

To evaluate a response from an assistant, call evaluate_alignment (evaluate in Node.js). The question is what you asked, the answer is the response to evaluate, and ground_truth_answer (groundTruth in Node.js) is the response you expect.
Response