The problem these assistants solve#
A customer phones an insurer and asks: “Can my brother drive my car?” The answer is in the terms and conditions of the policy. The person who takes the call must find it while the customer waits.
The sources describe four causes of this problem:
- Long documents. At HDI1, some documents are over 100 pages. The answers sit in several SharePoint sites and databases.
- Many documents. Verisk2 holds more than 40,000 classification guides and more than 500 bulletins in its premium audit service.
- Many products. InsuranceDekho3 offers more than 125 health plans from 21 insurers.
- Slow experts. InsuranceDekho’s advisors asked a subject matter expert, and each answer took a few minutes.
All seven teams chose retrieval-augmented generation (RAG). The assistant searches the documents for the passages that matter. Then a language model writes the answer from those passages.
I use three words in a fixed way in this post:
- An agent is always a person: a contact centre agent or an insurance sales agent.
- The assistant is the software.
- The public means policyholders and people who ask for a quote.
The seven case studies#
The seven come from ZenML’s LLMOps Database4, which lists 29 entries for insurance. I chose the entries in which an assistant answers questions from policy documents or guidance documents.
| Company | Use Case | Who reads the answer | Documents | Reported result | Stage |
|---|---|---|---|---|---|
| Allianz Direct5 (Germany) | An assistant that answers agents’ questions on terms and conditions | Contact centre agent | Terms and conditions of all products | 10 to 15% higher accuracy than the earlier tool | Proof of concept with some agents. Rollout to all contact centres had started. |
| HDI1 (Germany) | An assistant for contact centre agents, tuned in about 120 experiments | Contact centre agent | Internal documents, some over 100 pages | 88% recall | In production for over a year, about 800 users |
| InsuranceDekho3 (India) | An assistant that answers advisors’ questions on health plans | Insurance advisor | Insurance policy documents | 80% shorter response time | In use by advisors |
| Santalucía Seguros6 (Spain) | An assistant for agents, tested by a judge model before each release | Insurance agent, in Microsoft Teams | Documents on products, coverages and procedures | No figure | In use by agents |
| Verisk2 (USA) | An assistant that answers premium auditors from classification guides | Premium auditor or underwriter | Classification guides and bulletins | 96 to 98% less processing time per specialist | One beta customer. About 15,000 users planned. |
| GEICO7 (USA) | An experiment with a chat that collects customer data | The public | Question-and-answer records | Wrong replies on one test message: 12 of 20, then 0 | Experiment after a hackathon in 2023 |
| Lemonade8 (USA) | A list of the ways a RAG pipeline fails, with fixes | The public, in the app’s chat | Not stated | No figure | In use |
A premium auditor checks the records of a business after the policy period, to set the final price of its insurance.
Every figure comes from the company or from its technology supplier.
1. Five of seven give the answer to a professional#
In five cases, a trained person reads the answer first. That person is an agent, an advisor or an auditor. This design is a form of human in the loop.
Allianz Direct names two advantages of this design for compliance:
- The documents were terms and conditions that were already public.
- The answer went to an agent, and not directly to the customer.
Allianz Direct’s chief technology officer also states the aim: “We don’t want shorter calls, we’re not trying to replace agents with automation.” HDI’s assistant gives the agent the source references together with the answer.
Two cases face the public. At Lemonade, chat has been the main way to reach the company since 2015. GEICO’s case is an experiment, and section 4 shows what went wrong in it.
The five cases match the RAG archetype in my post on the cost of RAG. In that archetype, a person usually reads the answer before anyone acts on it.
2. The sources measure time and search quality, not correct answers#
The sources give three kinds of figure.
| Company | Figure | Kind of measure | What the source does not say |
|---|---|---|---|
| InsuranceDekho | 80% shorter response time | Time | The times before and after, and how the team measured them |
| Verisk | 96 to 98% less processing time per specialist | Time | The exact times. The source says “hours” became “minutes”, for one beta customer. |
| HDI | 88% recall | Search quality | How many answers were correct |
| Allianz Direct | 10 to 15% higher accuracy than the earlier tool | Answer quality, as a comparison | The accuracy of each tool, and the test |
| GEICO | 12 of 20 wrong replies, then 0 | Answer quality, on one message | The results for other messages |
| Santalucía Seguros, Lemonade | No figure |
Recall is the share of the needed passages that the search returns. It is not the share of correct answers. An assistant can find the right passage and still write a wrong answer.
HDI used recall as its gate. When recall passed 85%, the team gave the assistant to test users. Recall is now 88%.
Verisk writes that it reached “very high answer accuracy” in its proof of concept, but it gives no number. So no source reports the share of correct answers on a set of real questions.
No source gives a cost for each question. My post on the cost of RAG shows one way to estimate that cost.
3. Most of the work is in the search step#
The sources say little about the language model. They say much more about how to find the right passage.
Chunking. A chunk is one piece of a document that the search can return. HDI converted its documents to Markdown. It then put the section headings and the table headers into every chunk. Tables were the hardest part: when a table continues on the next page, the second part loses its header row. Verisk chunked its documents by section.
Hybrid search. Verisk found that vector search alone did not return all the relevant passages. It added a keyword search and combined the two, which is hybrid search. HDI also uses hybrid search, and it wrote its own version.
Filters. Verisk’s documents repeat the same topics in many places, so the search returned the wrong document for some questions. Verisk split the documents by document type. It also filters the search by line of business.
Query rewriting. Customers write in fragments. GEICO sent each message to a model that rewrote it as one clear question, which is query rewriting. GEICO searched with the original message and with the rewritten question, and then merged the results.
Order of the passages. GEICO put the most relevant record last in the retrieved context. It cites research which shows that models lose track of passages in the middle of a long input.
Language. HDI’s documents are in German, with many compound words and abbreviations. HDI found that some embedding models handle these words badly.
Experiments. HDI counted about 30,000 possible combinations of settings. It ran about 120 experiments in about three months. HDI’s speakers now recommend a different start: build a baseline with a managed service first, and then compare each change with that baseline.
Fewer model calls. InsuranceDekho checks a semantic cache first, and a recent answer to a similar question comes back without a model call. If the cache has no match, a small model sorts the question by intent. That model answers a general question itself, without a search.
Model settings. Verisk set the temperature to 0 to make the answers less random. It uses a small model where speed matters and a larger model to write the answer.
Lemonade’s talk adds a rule for all of this work: profile first. When an answer is wrong, find the step that failed before you change anything. The cause can be missing content, the search, the reranking or the step that writes the answer.
4. GEICO: the model promised an action it cannot do#
GEICO’s team built a chat application that collects information from a user. It asks its questions in a conversation, in place of a web form. The team tested it with this message:
Yes, I live alone. I have a question, is there a transaction fee if I pay my bill with a credit card?
The model replied:
Absolutely, I can help with that. There is no transaction fee if you pay with a credit card. It’s a convenient way to manage your payments without any extra charges.
The fact about the fee matches the retrieved record. But the reply implies that the assistant can take the payment, and it cannot. GEICO’s product team named this overpromising. GEICO treats it as one kind of hallucination.
The team sent the same message 20 times. It then tried two fixes.
| Fix | Wrong replies out of 20 |
|---|---|
| None | 12 |
| An instruction in the system prompt | It failed. GEICO gives no count. |
| An instruction stored in the retrieved record | 6 |
| The same, after more changes to the instruction | 0 |
The first fix put an instruction in the system prompt. It did not work, and it disturbed the other goals of the prompt.
The second fix stores the instruction with the record that needs it. GEICO’s example record has a field named rails with this text: “ALWAYS explain this without assuming you can process any payments for them”. The model reads the instruction only when the search returns that record and the record is relevant. GEICO calls this method RagRails. It is a guardrail that travels with the data.
The method has four limits:
- A good test result can hide a later failure, so GEICO repeats each test.
- Each rail adds tokens to the prompt, so a reply can cost more.
- More context can raise the risk of a hallucination. GEICO added a check that asks the model if each retrieved record is relevant.
- The figures cover one message. GEICO gives no result for other messages.
5. Three teams test against known answers#
Three sources describe a test set of questions with the answers that experts expect. Such a set is the ground truth.
Santalucía Seguros runs the test before each release. Professionals validate a set of questions and expected answers. A high-capacity model then scores each answer of the assistant against the expected answer. This method is LLM-as-a-judge. The set grows with each release. So the team can see if a changed prompt harms an answer that was correct before.
Verisk tried several evaluation tools and then wrote its own. It scores three things with a model:
- Is the answer relevant to the question?
- Are the retrieved passages relevant to the question?
- Does the answer come from the retrieved passages? This is a test of grounding.
HDI asked its staff for the questions, the expected answers and the passages that hold them. In production, an agent can mark each answer as good or bad. For a bad mark, the agent can add a comment. HDI’s speakers advise you to agree the measures and the ground truth with every department at the start.
Key takeaways#
If you plan an assistant of this kind, these steps follow from the case studies.
- Give the first version to trained staff.
- Write test questions with expected answers before you tune the search.
- Record the document and the passage that hold each expected answer.
- Measure recall and answer correctness as two separate numbers.
- Add keyword search to vector search.
- Keep the section headings and the table headers in each chunk.
- Filter the search by document type and by line of business.
- Store each warning in the record that it applies to.
- Send each test message many times.
- Count the wrong replies.
- Run the test set before each release.
Step 1 follows Allianz Direct. Steps 2, 3 and 6 follow HDI. Step 5 follows Verisk and HDI, and step 7 follows Verisk. Steps 8, 9 and 10 follow GEICO. Step 11 follows Santalucía Seguros. Step 4 follows from section 2.
Sources#
HDI and AWS Professional Services: Supercharging OpenSearch for RAG, a talk by Nabeel Janjua and Akarsha Sehwag. OpenSearch, 9 May 2025. ↩︎ ↩︎
Verisk: Turbocharging premium audit capabilities with the power of generative AI. AWS blog, 20 February 2025. ↩︎ ↩︎
InsuranceDekho: How InsuranceDekho transformed insurance agent interactions using Amazon Bedrock and generative AI. AWS blog, 18 November 2024. ↩︎ ↩︎
ZenML: LLMOps Database, insurance entries. ↩︎
Allianz Direct: Helping contact center teams improve customer satisfaction. Databricks customer story. ↩︎
Santalucía Seguros: Enterprise-level RAG for Enhanced Customer Service and Agent Productivity. Databricks blog, 21 June 2024. ↩︎
GEICO: Application of retrieval augmented generation for conversational interactions, by Virginia Kadel. GEICO tech blog. ↩︎
Lemonade: a talk by Lee Twito, GenAI Lead, in Hebrew. Industry-Academia AI Summit, 27 May 2024. ↩︎