CustomLabs
Case studies

A Retrieval Pipeline That Cut Support Load

-38% Ticket escalation rate First 60 days post-launch vs. trailing 60-day baseline
-52% First-response time
0 Tenant data leak incidents Across 40+ tenants since launch

The client is anonymised, and these figures are not independently audited.

At a glance#

Flow diagram. A scheduled re-index feeds per-tenant index partitions. Ranked retrieval reads the partitions and shows passages with source links in the support console. An eval suite in CI gates changes to ranked retrieval. INGEST INDEX SEARCH CONSOLE Scheduled re-index Per-tenant index partitions Ranked retrieval Eval suite in CI Passages with source links gates changes
The retrieval pipeline. A scheduled job re-indexes each tenant. Agents see ranked passages with source links.
We ruled out
  1. One shared index with a filter in the app layer
  2. A chat-style box that gives one generated answer
Reference shape

Grounded answering over your own documents

The problem

Their in-app help center had a keyword search box. It sat inside a support platform that served dozens of enterprise tenants. Each tenant had its own configuration docs, runbooks and internal knowledge base articles. Keyword search matched words and missed the point. Support agents mostly ignored the box and searched by hand across a dozen browser tabs. First-response time on tickets that should have been self-service kept rising. Escalations to engineering became a bottleneck.

The team had already built a retrieval-augmented answer box in a notebook. It worked well in a demo on one tenant’s data. One tenant’s documentation is small and consistent, and one pass can index it. The demo did not show what would happen with 40 tenants of overlapping, sometimes contradictory documentation, all live at once. Each tenant expected its own answers and nobody else’s. That gap, between a one-tenant demo and a forty-tenant production system, was the real risk.

What we ruled out, and what we built

The notebook pointed to the fastest way to ship. Take the working single-tenant index, widen it to cover every tenant, and filter results in the application layer before they reach an agent. We ruled that out first. With a shared index across 40 tenants, a query from Tenant A’s support agent can retrieve Tenant B’s internal notes. A UI-side filter is a promise made downstream. It is no architecture. The platform held other companies’ internal runbooks, and we would not carry that gap from a notebook into production.

We also ruled out a chat-style answer box. It gives an agent one generated response and no way to check it. The notebook demo leaned this way, because a fluent paragraph reads well in a one-tenant walkthrough. In production, an agent must trust an answer before they repeat it to a customer. A confident paragraph with no source gives them nothing to check.

We started with per-tenant index partitions. The retrieval layer enforces isolation itself. A query from Tenant A’s support agent cannot surface Tenant B’s internal notes. The index never holds both tenants’ documents in the same searchable set.

On top of the partitioned index sits an ingestion job. It re-indexes each tenant’s knowledge base and recent resolved tickets on a schedule. The notebook demo ran on one static snapshot that nobody refreshed. Documentation changes all the time. Runbooks get rewritten and tickets get resolved. Configuration pages drift from week to week. With a scheduled re-index, an agent’s answer matches the tenant’s current docs.

Agents do not see a chat-style black box. They see a ranked-answer view in the existing support console. It lists the top candidate passages, and each one has a source link. An agent can open the source and check it before they repeat it to a customer. This one design choice built more trust in the tool than any accuracy number could have done.

Under all of this runs an eval suite. We built it from a sample of real historical tickets with known-good resolutions. It runs in CI against every change to the retrieval or ranking logic. A test suite gates a code change in the same way before it merges. This let the team keep tuning the ranking logic with confidence once the pipeline was live across 40 tenants.

The outcome

The pipeline went live in a phased rollout. It started with a handful of accounts and then reached the full base. Escalation rates and first-response times both improved within the first 60 days. The team’s top metric going in was zero cross-tenant data exposure incidents during the rollout. That result shows the isolation model held under real production load, and a one-tenant demo could never show it.

For the support lead, the win was trust. Agents had learned to ignore the old keyword box, because it wasted their time on results that looked right and were wrong. A ranked-answer view with a source link on every passage gave them something to check before they replied to a customer. That is why agents use the tool on every ticket and no longer bypass it on the hard ones.

For engineering, the value was the eval suiteAn eval suite is a versioned set of test cases that measures whether outputs are good. in CI. Before it existed, nobody could measure a ranking change until an agent complained about a bad result. Now every change to the retrieval or ranking logic must clear the same bar before it ships. Real resolved tickets set that bar. The team’s confidence in its own search tool became a number it can point to.

For security, the isolation model was the reason to build a partitioned index and leave the notebook’s shared one behind. Zero cross-tenant exposure incidents across a rollout of more than 40 tenants is the result that mattered most. A support platform that holds other companies’ internal documents cannot afford this failure even once.

“Support went from dreading the search widget to trusting it. That's the whole story.”

VP of Customer Support
Related services
AI IntegrationsCustom Development
Enforce isolation in the retrieval layer.

A Ship Audit checks whether your retrieval index is partitioned by tenant. That one decision kept this pipeline's leak count at zero across forty tenants.

Written by

CustomLabs Engineering

Agentic AI engineering team

CustomLabs is a small, senior-only studio that embeds with client teams. It ships eval-tested, model-agnostic AI systems into production in weeks. Every insight reflects work and lessons from the studio's own engagements — the people who write the code write the words.

Source: https://customlabs.io/case-studies/retrieval-pipeline-cut-support-load/

↑↓ navigate ↵ select esc close