Ragas, a paper on automated evaluation of RAG, defines the first property this design needs: faithfulness means the answer is grounded in the given context.
Faithful isn't correct. A step can faithfully follow a chunk that was the wrong policy. So score at least:
- faithfulness: each step is supported by the chunk it cites
- correctness: the steps match what a policy expert would do for this ticket
- completeness: no required step is missing
- citation precision: the citations point at the right sections
- abstention: it held back when it should have, and only then
Airbnb's evaluation guide walks through a close cousin of this system, a fictionalized and simplified version of a real use case: an AI assistant that answers questions about a travel platform's support policies.
In that walkthrough, 15 of the prototype's first 100 responses made up policy details that weren't in the source documents, a faithfulness issue.
Airbnb calls the practice eval-driven development, its GenAI version of test-driven development (1 source).
In the editor, write scores(steps, gold): faithfulness, correctness and completeness for one suggestion. Each step says whether its chunk supported it, and gold lists the steps a policy expert would take.