Better Customer Support Using Retrieval-Augmented Generation (RAG) at Thomson Reuters

Keshav Unni8 Aug 2023

Problem

Thomson Reuters support agents answer questions about legal and tax products for customers who are experts themselves. The agents work across a CRM, ticket queues and hundreds of thousands of knowledge base articles. When one agent finds a fix, the others get it only by word of mouth, which overloads the agents.

Example from the article: an agent pastes the e-file error IND-041 for a 1040 tax return. Plain GPT-4 gives a generic answer about the Third Party Designee section, while the company's own fix is a specific path through the Organizer screens.

Solution in brief

Put the company's knowledge base and CRM text into a vector database and answer each question in two steps. First retrieve the most similar chunks. Then pass them to GPT-4 together with the question, so the answer follows current internal resolutions instead of the model's general knowledge.

Questions this case answers
  • How to answer questions from a large, changing internal knowledge base with an LLM without hallucinated or uncited answers
  • How to give customer support agents fast, accurate answers from hundreds of thousands of knowledge base articles?
  • How to stop a general-purpose LLM from giving plausible but wrong product troubleshooting steps?
  • How to make a fix found by one support agent available to the others without person-to-person handover?

Tools and methods

  • Retrieval-augmented generation (RAG) — retrieve internal text first, then generate the answer from it
  • Sentence Transformers (all-MiniLM-L6-v2) — open-source model that turns chunks and queries into embeddings
  • Milvus — open-source vector database that stores embeddings and returns the nearest ones
  • GPT-4 API — generates the final answer from the retrieved context and the prompt
Continue reading — it's free

Google or a one-time email code. No password.