LIVE · Thursday 3 December

How Agencies Improve Each Client's Chatbot From Its Own Conversation Logs Without Mixing Data

Share the engine, partition everything learned. A per-client eval set, redaction before storage, a risk-ordered ladder that ends at a per-client LoRA adapter, and separate caches keep each bot improving only from its own client.

By Surya14 min read

An agency can improve every client's chatbot from that client's own conversation logs, without mixing data, by sharing only the engine (base model, code, tooling) and giving each client its own partition of everything learned: tagged logs, redacted transcripts, a per-client eval set, prompts, a retrieval index and, if it comes to that, a per-client LoRA adapter. Changes climb a ladder ordered by risk, from prompt and knowledge-base fixes to per-tenant fine-tuning, and each step must beat the previous one on that client's own test set before the next is tried. Pooled fine-tuning on all clients' logs is the one option that mixes data inside the model, and it should be off the table.

The rest of this guide walks through the loop stage by stage, with the isolation control each stage needs and what it costs at agency scale.

The loop, and where clients' data could cross

A multi-tenant chatbot improvement pipeline has six stages, and data can leak at every one of them:

capture ──> redact ──> store ──> build eval set ──> change the bot ──> serve
 (tag)     (per client) (per-client   (that client's     (prompt → index →    (shared base,
                         partition)    failures only)      LoRA adapter)        separate adapters
                                                                                 and caches)
         every stage rejects anything without a validated client ID

The principle that holds the loop together is simple: anything derived from a client's conversations stays in that client's partition, and the only things that cross between clients are code and methods. The sections below take each stage in order.

Tag every turn when it is captured

Isolation begins with a label, because data that was never tagged cannot be separated later. Every turn, trace, tool call, eval case and training example should carry a client ID that the platform validated, not one the model or the user supplied.

AWS's May 21, 2026 guide to multi-tenant agents on Bedrock AgentCore shows the usual mechanism. The SaaS platform "attaches headers carrying tenant-specific metadata," such as a tenant identifier, and the JWT that authenticates the request carries "tenant_id and tenant-specific scopes." AWS then uses attribute-based access policies on IAM principal tags to restrict which data each tenant's requests can touch. For an agency the same idea applies at smaller scale: the client ID comes from the authenticated widget or API key that a conversation arrives on, and every downstream write copies it.

Rejecting untagged data is a database rule, not a code review habit. In Postgres, a NOT NULL client ID column plus row-level security does most of the work: the PostgreSQL 18 docs say that when row security is enabled and no policy exists, "a default-deny policy is used, meaning that no rows are visible or can be modified." Two caveats matter. Superusers and roles with BYPASSRLS "always bypass the row security system," and table owners do too unless the table is set to FORCE ROW LEVEL SECURITY. The pipeline jobs that build eval sets and training files should therefore run as ordinary roles, never as the owner.

Redact before anything is stored

Logs get reused for debugging, evaluation and training, so personal data has to be removed before it reaches storage, and the setting has to be on for each client from the first conversation. Redaction is generally not retroactive. Voiceflow's documentation says "PII redaction is a project-level setting" and that "Enabling redaction does not affect existing transcripts." Kore.ai's v10 docs set it per bot, under Build > Configuration > PII Settings, and do not mention whether it covers data stored before it was switched on. Google's Dialogflow CX approach, described on Google's Cloud blog in December 2021, purges the selected data types "prior to being written to permanent Dialogflow storage." If a client's bot ran for a month before redaction was enabled, that month's logs need a separate clean-up pass before they go anywhere near an eval set or training file.

Tool outputs need the same treatment as user messages, because a tool can return a whole customer record that the user never typed. Platform defaults vary here. Voiceflow redacts debug-trace metadata by default, but its docs say the tools property, which holds tool registration and agent step data, is allowlisted and kept as-is. Kore.ai sends redacted values to Service Node calls by default unless a "De-identification of PII data" setting passes the originals through. An agency running its own stack can use Microsoft's open-source Presidio, an MIT-licensed analyzer and anonymizer, on every message and tool payload before writing it; its README warns that "there is no guarantee that Presidio will find all sensitive information," which is why the training-data stage below adds a human review.

Redaction rules belong to the client, not the agency. A healthcare client and an ecommerce client need different entity lists, so the redaction config should live in the client's partition alongside its prompts.

Build each client's eval set from its own failures

Before changing anything, the agency needs a way to tell whether a change helped that client. The raw material is already in the logs: conversations that were escalated to a human, rated low, abandoned, or ended in a failed tool call. OpenAI's evaluation guide puts the principle plainly: "Log everything... so you can mine your logs for good eval cases," with a mix of "typical cases, edge cases, and adversarial cases," and it lists datasets "that don't faithfully reproduce production traffic patterns" as an anti-pattern. So each client's eval set should combine its flagged failures with a random sample of ordinary conversations, so that fixing one problem does not quietly break the common case.

Each case is a redacted conversation prefix, the expected behaviour (written by someone who knows the client's policies) and a grading rule. OpenAI's guide recommends "pairwise comparison or pass/fail for more reliability" over open-ended scores, warns that LLM judges favour longer answers, and says to "use human feedback to calibrate automated scoring" before trusting a judge at scale. A practical split is pass/fail on facts and policy (did the bot quote the right refund window?) and a calibrated LLM judge for tone.

How many cases is a statistics question, and the answer is more than most agencies assume. Evan Miller's paper "Adding Error Bars to Evals" gives the standard error for pass/fail scores as the square root of p(1-p)/n. At an 80 percent pass rate on 200 cases that is 2.8 points, so a 95 percent interval of about plus or minus 5.5 points. Miller's worked example needs about 969 independent questions to detect a 3-point difference, and he recommends at least 1,000 for a new eval. Most clients will not produce 1,000 distinct failures quickly. Two techniques from the same paper help. Compare the old and new bot on the same cases and use the paired standard error, which Miller calls a "free" reduction in variance. And run each case several times: with 198 questions, his example shows resampling each one 10 times instead of once cutting the minimum detectable effect "from 13.2% to 7.5%." He also warns that related questions, such as several turns from the same conversation, need clustered standard errors, which in one of his examples were more than three times larger than naive ones.

The eval set lives in the client's partition and is never reused for another client, because the cases are that client's conversations. What the agency can reuse is the method: the case template, the judge prompt and the sizing rule.

Climb the ladder in order of risk

With a measurement in place, improvements go in order of how much client data each one bakes into something shared. Each step must show a gain on the client's eval set that is larger than the eval's own noise, roughly the minimum detectable effect worked out above, before the next step is attempted.

Prompt and knowledge-base fixes. When a failure traces to a missing fact or an unclear instruction, adding the missing policy to the knowledge base or tightening the system prompt changes only that client's configuration, so nothing learned can leak to anyone else. This step is cheap and should be exhausted first.

A per-client retrieval index. When the knowledge base grows, isolation has to be enforced by the database, not by a filter clause the prompt builds. Pinecone's multitenancy guide says to "use one namespace per tenant," notes that each namespace is stored separately, and says "Reads and writes always target a single namespace," so a query cannot accidentally span clients. Deleting a client's namespace is, in Pinecone's words, "a lightweight and almost instant operation," which matters at offboarding. Postgres with pgvector gets the same effect from row-level security. AWS's guide describes the stricter silo option, "dedicated vector databases per tenant," as recommended "for regulated industries and enterprise customers requiring dedicated infrastructure," against the pool option of shared databases with tenant filtering.

A per-client LoRA adapter. Fine-tuning is for what the steps above cannot fix: a client's jargon, a house tone, a strict output format. AWS's guide treats it the same way, calling shared foundation models "the recommended starting point for most multi-tenant deployments" and tenant-specific fine-tunes "necessary for specialized use cases." If an agency gets here, it trains a separate small adapter per client on that client's redacted, human-reviewed conversations only. Adapters are not leak-proof, but research points toward them leaking less: Mireshghallah and colleagues found in 2022 that "fine-tuning smaller adapters appears to be less vulnerable to known extraction attacks" than fine-tuning the model's head. A client's adapter can still reproduce that client's data to that client's users, which is why review before training still matters.

Never: pooled fine-tuning. Training one model on every client's logs is the only option that puts several clients' data inside the same weights, where no filter can separate it again. No eval gain justifies it.

Nobody has published a measurement of how much each rung typically gains for agency chatbots, so the thresholds have to come from each client's own eval.

Serve many adapters on one base model, with separate caches

Per-client adapters only make sense economically if they share hardware, and the serving stack now handles that well. vLLM loads adapters with --enable-lora and --lora-modules, and a request picks its client's adapter through the ordinary model field. The research behind this kind of serving reports large gains: the Punica paper, from October 2023, reports "12x higher throughput in serving multiple LoRA models compared to state-of-the-art LLM serving systems while only adding 2ms latency per token," and S-LoRA reports up to four times the throughput of vLLM's earlier naive LoRA support while serving "thousands of LoRA adapters." Managed providers are more cautious about per-request cost: Fireworks' docs say the number of adapters on a deployment "has little effect on per-request performance," but list "TTFT often +10–30%" against a merged model.

The routing layer must map the authenticated client ID to the adapter name, never accept an adapter name from the request body. vLLM's runtime endpoints for loading and unloading adapters carry their own warning: "It should not be used in production unless it is an isolated, fully trusted environment."

The subtler leak is the cache. A shared prefix cache answers faster when a prompt matches something already cached, and that timing difference can reveal another tenant's prompts. Researchers auditing hosted APIs in 2025 detected "global cache sharing across users in seven API providers, including OpenAI." For self-hosted vLLM, the fix is a per-request cache_salt, set to the client ID: vLLM's docs say only requests with the same salt "can reuse cached KV blocks," which "prevents timing-based attacks where an adversary could infer cached content by observing latency differences." vLLM also includes LoRA IDs in each block's hash.

On hosted APIs, the boundary is the account. OpenAI's prompt-caching guide says "Caches are not shared across organizations," which means all of an agency's clients inside one organization sit inside one cache boundary. Anthropic's docs say caches are also isolated by workspace on the Claude API, Claude Platform on AWS and Microsoft Foundry, but only by organization on Bedrock and Google Cloud's Google-managed offering. An agency on the Claude API can put each client in its own workspace; elsewhere, a separate organization or project per sensitive client is the safer reading.

The per-stage checklist

Stage Control Shared across clients?
Capture Validated client ID on every turn; untagged writes rejected by default-deny Code only
Redaction Per-client entity rules, applied to user text and tool outputs before storage Redaction code and method
Eval set Built from that client's failures plus a random sample; stays in its partition Template, judge prompt, sizing rule
Retrieval Namespace, row-level security or dedicated database per client Nothing derived from client documents
Adapter Trained only on that client's reviewed data; routed by authenticated ID Base model and training code
Cache Salt or workspace per client Nothing

What the contract should say

The engineering separation needs a legal counterpart, and the questions to settle are who owns the adapter, who owns the logs, and what happens at the end. In the EU, an agency running a client's chatbot is usually that client's processor, and GDPR Article 28 sets the floor: the processor acts "only on documented instructions from the controller," cannot bring in another processor "without prior specific or general written authorisation," and at the end of the service "deletes or returns all the personal data." Training a client's adapter is processing, so the contract should name it as an instruction. A clear clause would state that the client owns its traces, eval set and adapter weights; that the agency will not use them to train or evaluate any other client's system; that the agency may reuse its own code, methods and anonymized lessons such as "bots in this sector fail on refund questions"; and that on termination the agency deletes or hands over the namespace, eval set and adapter on a stated date. Any pooling of even anonymized data across clients should need the client's explicit, separate opt-in.

Who can run the loop

An agency can build this itself on vLLM, Postgres or a namespaced vector database, Presidio and a training library. Managed multi-LoRA hosting exists at Fireworks and on Together's dedicated deployments, though Together says its serverless multi-LoRA option "has been discontinued," and Predibase's open-source LoRAX server was archived on October 12, 2026. Parsec, a small language model lab, offers a managed version of the loop: its inference page describes trace, dataset, an eval the customer approves, LoRA or SFT training, and serving, with low-confidence requests sent to a closed frontier model, and it says "Weights: Yours. Download them." Its models run on a shared cluster alongside other customers', it publishes no price for the service, and its pages do not mention VPC hosting for it, so an agency would need its per-client isolation terms in writing.

What it costs

Take an agency with 30 clients, each producing 8,000 conversations a month. If 5 percent are flagged, that is 400 candidates per client, from which a reviewer keeps about 200 eval cases a month, plus 100 random regression cases. After the first month each client has about 300 cases, a little more than the 198 questions in Miller's example, where ten repeated runs per case brought the minimum detectable effect down to about 7.5 points on his assumptions. That is nowhere near the roughly 1,000 cases a three-point difference needs. Several months of collection close that gap.

For the minority of clients that reach the adapter step, assume 2,000 reviewed conversations of 1,500 tokens, or 3 million tokens, trained for three epochs. At Together's listed $0.34 per million tokens for supervised fine-tuning on Llama 3.1 8B that is about $3, under the $4 minimum charge, so each retraining run costs $4. Retraining all 30 clients monthly would be $120.

Serving is the real cost. One Together H100 dedicated endpoint at $5.49 an hour is about $3,953 for a 30-day month, or about $132 per client if all 30 adapters share it. Giving each client its own dedicated endpoint instead would cost about $118,600 a month. Whether a single H100 carries 30 clients' chatbot traffic has not been measured, and Fireworks' 10 to 30 percent time-to-first-token penalty for multi-LoRA is the kind of overhead to test before committing.

What to do, starting this week

  1. This week (from November 17): confirm every conversation, tool call and log row carries a validated client ID, and turn on per-client redaction for any bot that lacks it. Treat logs from before that date as unredacted.
  2. By December 1: build each client's first eval set from its flagged conversations plus a random sample, and record the current bot's scores.
  3. December: fix prompts and knowledge bases client by client, keeping only changes that beat the eval's noise.
  4. January 2027: move clients with large or sensitive knowledge bases to their own namespace or database.
  5. First quarter of 2027: train adapters only for clients whose eval set is large enough to prove a gain, register them on one shared deployment with a per-client cache salt or workspace, and update contracts to list any new host.

Bottom line

For every client, tag at capture, redact before storage, and build an eval set from its own failures before touching anything else. For most clients, prompt and knowledge-base fixes measured on that eval set will be the whole job. Clients with large or sensitive knowledge bases get their own namespace or database. Clients whose failures persist after that, and whose eval set is big enough to prove a gain, get a per-client LoRA adapter on a shared base model with a per-client cache salt or workspace. No client's data trains anyone else's model, and the contract says so.

Sources

More in Models

All Models →