Quest 03 / 03 · Quick build
Check support-ticket summaries against their source text
- prompt evaluation
- JSON validation
- Python
Why now Intuit says outside teams should validate NightFalcon's reported security-review results on their own applications. Try the same evidence-first habit on a small set of support tickets by checking whether generated summaries include a quote found in the ticket itself.
Build it Use Promptfoo and Gemini to produce short structured summaries of support tickets with an exact source excerpt for review. A local check verifies the excerpt appears in the ticket, while a person reviews whether the summary adds unsupported details.
From the news
Tools
- Promptfoo
Promptfoo's open-source code is MIT licensed. Its Community plan is free with stated probe allowances; commercial Enterprise and on-premise offerings add features under separate service terms. Model-provider charges and additional enterprise probes can be separate costs.
- Google Gemini models
Gemini API is a proprietary hosted service governed by Google's API terms. Free access is available for selected models, including Gemini 4 Hydrogen, while other models require paid usage.
Data
- Customer IT Support - Ticket Dataset Kaggle
Use labeled email tickets and their agent answers as source material for summary checks.
Steps
- Inspect the dataset files and columns, then choose six tickets with readable ticket text and agent answers.
- Create Promptfoo cases that ask Gemini for JSON containing a short summary and an exact excerpt copied from the ticket.
- Add checks for valid JSON and for an excerpt that appears verbatim in its source ticket.
- Run the cases and review each summary for details that the ticket text does not support.
Done when
- Promptfoo records a result for each of the six ticket cases.
- Every case that passes the excerpt check includes text found in its own ticket source.
- A short review note identifies any unsupported summary detail and explains that quote matching alone does not verify a claim.
