RAG-Powered Customer Support Enhancement Using GPT-4

thomson_reuters · Legal · 2024 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Legal and tax customer support knowledge retrieval

Thomson Reuters customer support agents needed faster, more accurate access to specialized legal and tax support knowledge spread across CRM systems, hundreds of thousands of knowledge-base articles, tickets, and person-to-person knowledge transfer.

Constraints:

Architecture

Thomson Reuters implemented a RAG support assistant with two flows: a processing/indexing flow that chunks knowledge-base and CRM text, embeds it with sentence-transformer models, and stores it in Milvus; and a retrieval flow that embeds an agent query, retrieves semantically similar support passages, concatenates the selected context with the prompt, and sends it to GPT-4. The resulting chatty interface gives support agents product-specific answers grounded in Thomson Reuters support content.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  A["Knowledge base and CRM content"] --> B["Processing and indexing flow"]
  B --> C["Embedding model"]
  C --> D["Milvus vector database"]
  E["Customer support agent"] --> H["Support agent interface"]
  H --> F["Retrieval flow"]
  F --> C
  D --> F
  F --> G["GPT-4 API"]
  G --> H
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Knowledge base and CRM content Source corpus of support articles, CRM records, and related text. Processing and indexing flow
Processing and indexing flow Chunks support content and prepares it for embedding. Knowledge base and CRM content, Embedding model
Embedding model Converts documents and queries into dense vector representations. Processing and indexing flow, Milvus vector database, Retrieval flow
Milvus vector database Dense retrieval system storing embedded support passages. Embedding model, Retrieval flow
Retrieval flow Finds relevant support passages for an agent query and builds prompt context. Embedding model, Milvus vector database, GPT-4 API, Support agent interface
GPT-4 API Seq-to-seq LLM that generates the final support response from retrieved context. Retrieval flow, Support agent interface
Support agent interface Chatty interface for customer support agents to ask questions and receive grounded answers. Retrieval flow, GPT-4 API, Customer support agent
Customer support agent Human support user who applies the answer in customer support workflows. Support agent interface

Data flow

Knowledge-base articles and CRM/ticket content are processed into chunks, converted into dense embeddings, and stored in Milvus. At query time, the customer-support agent asks a question, the query is embedded into the same vector space, dense retrieval returns relevant passages, those passages are concatenated with the prompt, and GPT-4 generates a support answer for the agent.

4 supporting quotes
“There are two flows to the implementation as seen below, with one being the processing and indexing flow and the retrieval flow.”article, stated
“we take the data from Knowledge base articles, CRM tools etc. and process these text files to chunks which can be converted into embeddings.”article, stated
“When a query is input, it is also encoded into a dense vector. The similarity between the query vector and the document vectors is computed”article, stated
“the most relevant context is concatenated along with the prompts and is sent to the API to get appropriate response for the user.”article, stated

Why this architecture

Thomson Reuters chose RAG because support answers needed both the language capability of GPT-4 and grounding in a large, changing, domain-specific knowledge corpus. The non-parametric retrieval layer reduces hallucinations, provides provenance, and lets support knowledge update without retraining the base model.

“Retrieval Augmented Generation (RAG) is a recipe or pattern for ensuring factual generation of responses in large pre-trained language models”article, stated

1. Reduce hallucinations.

2. Provenance

3.More economical means to introduce new / update knowledge over retraining LLMs."

“This adaptability can prove crucial in real-world applications where the data may evolve over time.”article, stated

Models used: GPT-4 API · all-MiniLM-L6-v2 · BERT · RoBERTa · T5 · OpenAI text-embedding-ada-002

Scale

Alternatives considered (roads not taken)

Use GPT-4 without retrieval over Thomson Reuters support content

Rejected because: The article shows the non-RAG answer sounded plausible but was not the most accurate product-specific resolution.

“Though the above response does look like it makes sense this is not the most accurate response to solve the issue.”article, stated

Rely on parametric model knowledge alone

Rejected because: Fixed model knowledge is less adaptable when support data changes.

“LLMs contain parametric knowledge learned during training, this knowledge is fixed once the model is trained, making it less adaptable to new, unseen information.”article, stated

Continue person-to-person transfer of recent resolutions

Rejected because: Recent resolutions discovered by one agent were not structured for reuse by other agents.

“a recent resolution for a problem is found by one agent but is not available for others in a structured manner”article, stated

Patterns

rag-retrieval (retrieval)

The system retrieves support passages from a dense vector database and feeds them to GPT-4 as grounded context.

“The most relevant data fetched from the dense retrieval system is fed into a seq-to-seq model which is usually an LLM.”article, stated

retrieval-ranking (retrieval)

Dense retrieval ranks candidate passages by vector similarity to the agent's query.

“The documents or passages with the highest similarity scores are considered the most relevant and returned as results.”article, stated

human-in-the-loop-gate (workflow)

The generated answer is built for customer support agents, who use it in the customer support process rather than bypassing the agent.

“The end goal of this solution was to build a chatty interface for our customer support agents to get the most relevant solution from our curated database.”article, stated

fine-tuning-adaptation (model-adaptation)

The article explicitly chooses RAG's non-parametric adaptation path as a cheaper way to update knowledge than retraining the LLM.

“3.More economical means to introduce new / update knowledge over retraining LLMs.”article, stated

Tradeoffs

Use RAG instead of raw GPT-4 for support answers.

Chose GPT-4 with retrieved support context over GPT-4 without RAG.

Rationale: The article's example shows the standalone response looked reasonable but missed the product-specific resolution.

3 supporting quotes
“To GPT-4 Without RAG:”article, stated
“To GPT-4 With RAG:”article, stated
“This response is most accurate as this match with the resolution to solve the issue within our products with the most recent information.”article, stated

Use non-parametric retrieval for changing knowledge.

Chose Flexible retrieval over post-training knowledge sources over Relying only on fixed parametric model knowledge.

Rationale: The support domain changes, so retrieval lets knowledge update after the base model is trained.

“non-parametric methods allow for a flexible approach, enabling the maintenance and update of knowledge post-training.”article, stated

Use an open-source vector database and sentence-transformer stack for retrieval.

Chose Milvus and all-MiniLM-L6-v2 over Only using managed or proprietary retrieval components.

Rationale: The implementation names Milvus and a Hugging Face sentence transformer as the concrete retrieval stack.

“For our use case we used milvus which is an open-source vector database and used an opensource sentence transformer from huggingface”article, stated

Gotchas (what bit them)

Support agents suffered cognitive overload from scattered support systems.

Root cause: Agents had to navigate CRM, tickets, and hundreds of thousands of knowledge-base articles while serving specialized customers.

Resolution: Create a RAG interface that retrieves the most relevant solution from a curated support database.

“The customer support agents need to be able to quickly navigate CRM, hundreds of thousands of knowledge base articles, manage tickets”article, stated
“The end goal of this solution was to build a chatty interface for our customer support agents to get the most relevant solution from our curated database.”article, stated

Standalone GPT-4 could produce a plausible but wrong product answer.

Root cause: The model lacked the current, product-specific support resolution without retrieval context.

Resolution: Retrieve the product-specific resolution and feed it to GPT-4 with the prompt.

“Though the above response does look like it makes sense this is not the most accurate response to solve the issue.”article, stated
“This response is most accurate as this match with the resolution to solve the issue within our products with the most recent information.”article, stated

Support knowledge transfer was not structured for reuse.

Root cause: Recent resolutions could stay with one agent instead of becoming searchable organizational knowledge.

Resolution: Index support artifacts into dense retrieval so relevant passages can be reused by any agent query.

“a recent resolution for a problem is found by one agent but is not available for others in a structured manner”article, stated

Evaluation

The article evaluates the RAG approach through a concrete before/after support question: GPT-4 without RAG produced a plausible generic tax answer, while GPT-4 with RAG returned the product-specific resolution steps.

Metrics: Resolution time reduction · Product-specific answer accuracy · With-RAG versus without-RAG answer comparison · Ability to provide provenance and reduce hallucinations

3 supporting quotes
“Below you can see the impact of RAG on fetching information on our domain data with and without RAG.”article, stated
“Though the above response does look like it makes sense this is not the most accurate response to solve the issue.”article, stated
“This response is most accurate as this match with the resolution to solve the issue within our products with the most recent information.”article, stated

Outcomes

The source reports a support corpus of hundreds of thousands of knowledge-base articles and global Thomson Reuters customers, but does not provide exact user counts, query volume, latency, or percentage reduction in resolution time.

3 supporting quotes
“we were able to reduce resolution times using a GPT 4 powered solution, coordinating the company’s research and customer success functions”article, stated
“This response is most accurate as this match with the resolution to solve the issue within our products with the most recent information.”article, stated
“The end goal of this solution was to build a chatty interface for our customer support agents to get the most relevant solution from our curated database.”article, stated