Problem
Customer service representatives (CSRs) in an insurance call center answer questions from policy documents, their own notes and customer-specific tables. These sit in different systems and overlap, so answers take time and details get missed. The usual way to reach tables from an LLM is to translate the question into SQL and call the database. That adds LLM calls, which cost money and time, and the translation is sometimes wrong.
Example from the article: a CSR asks "What are the product rules for this policy?" with a policy number and gets bullets citing numbered sources.
Solution in brief
Table rows are turned into JSON strings, embedded like document chunks and stored in a vector index next to the document index. At question time the system retrieves the top chunks from both indexes, passes them to GPT-3.5 and has a second LLM rate how well the answer is grounded. No SQL is generated at inference.
Questions this case answers
- How to answer questions that need facts from large relational tables and from text documents together, under a tight response-time budget
- How to retrieve rows of structured data semantically without translating each question into a database query
- How to answer call-center questions that need both customer policy tables and policy documents?
- How to retrieve facts from database tables in a RAG system without an LLM-generated SQL call per question?
Tools and methods
- RAG with embedded table rows — rows become JSON chunks searched by vector similarity.
- Azure AI Search, text-embedding-ada-002 — two vector indexes (documents and tables), 1536-dimensional vectors.
- GPT-3.5-turbo via Azure OpenAI — generates the answer from the retrieved context.
- Secondary LLM validation (GPT-4 or Llama 3) — rates groundedness from 1 to 5 with a few-shot prompt.
- Promptflow, AKS, PowerBI — inference app, deployment and the quality dashboard.
Google or a one-time email code. No password.