Problem
Santalucía Seguros built a RAG virtual assistant for insurance agents, who ask about products, coverages and procedures. The documents sit in many places and formats, and new ones are ingested continuously. Code and prompts change often, and any change can quietly lower the quality of answers that were correct before. The team does not want users to be the ones who find out.
Example from the article: a new product's coverages are added, and the team must confirm the assistant still answers correctly before the update goes live.
Solution in brief
Before each release, the assistant answers a ground truth set of questions validated by professionals. A strong LLM acting as judge scores every answer against the expected one using natural-language criteria. The set grows with each release, and the run sits in CI/CD, so prompt edits are checked like new documents.
Questions this case answers
- How to gate each release of a retrieval-based LLM assistant on answer quality when the answers are free text and cannot be compared by exact match
- How to detect regressions from small prompt or code changes in a document-grounded generative system before users see them
- How to check a RAG assistant's answer quality before every release instead of waiting for user complaints?
- How to make sure that a prompt tweak does not degrade answers that were already correct in earlier releases?
Tools and methods
- RAG — retrieval from embedding-based vector stores fed with up-to-date documentation
- Ground truth question set — questions with expected answers, validated by professionals
- LLM-as-a-judge — a high-capacity LLM scores each answer on accuracy, relevance and coherence
- CI/CD evaluation run — the assistant answers all ground truth questions before release
- MLflow — the RAG system is registered as a pyfunc model
- Databricks Model Serving — hosts LLM endpoints, manages credentials and token use
- Microsoft Teams — the assistant's user interface for agents
Google or a one-time email code. No password.