The Knowledge Base Caps the Ceiling. The Model Is Just a Tool

Architecture review. The vendor has just finished demoing a customer-service Agent.
"We use the latest large language model, paired with an industry-leading vector database, 95% accuracy."
The CTO is taking notes. How was that 95 percent measured? On what scenarios? Who wrote the Q&A pairs in the knowledge base? If you rephrase the same question five ways, is it still 95 percent? Is the accuracy for a product SKU lookup the same as for a return-policy query?
The vendor doesn't answer any of this. The price tag is already 2 million RMB.
In the customer-service Agent projects I've seen this year, 80 percent of the money got spent on the wrong things. On the most expensive LLM — the domestic ones are good enough. On the fanciest vector database — the orchestration platform's built-in is enough. On the most complex engineering — the knowledge base is the actual ceiling.
What actually decides whether an Agent ships are three questions engineers don't like discussing, and management has to ask clearly. How is the knowledge base built? That caps quality. Document quality sets the Agent's ceiling. How is the model chosen? Between domestic, overseas, and mixed, which five specific capabilities actually differ in customer-service work? Across four cost buckets, where does the money go? Inference is only 5 percent. Headcount is the big one. Most budgets get this ratio backwards.
At the next architecture review, you should be able to tell whether the vendor's proposal is just dumping documents into a vector database. And you should be able to put a real plan on the table: a three-layer knowledge base, a model choice, and a four-bucket cost estimate. Which four projects to start with is in Your boss handed you 28 smart-X projects. Start with four. Leave the rest off the roadmap.. This piece is the other half of that first Agent: how the knowledge base is built, how the model is chosen, and where the money actually goes.
The knowledge base isn't a pile of documents. Error cost decides how you build it
The verdict first. How you build a knowledge base is decided by what a mistake in each layer actually costs. It isn't one big pile of documents. It's three completely different layers, and each one needs a different processing strategy.
Layer 1 is structured rules: return policy, brand-authorization rules, logistics time commitments — the kind usually written as SLAs. Examples include "7-day no-questions-asked return conditions," and the brand-specific variants of those return policies. This layer has to be 100 percent accurate. Use hard rules. Bypass the LLM entirely.
Layer 2 is product knowledge: attributes, sizing, materials, use scenarios. A running shoe's outsole material, the running style it is built for, comparisons within the same series. This is the main source for product-query answers.
Layer 3 is experience: the best answers to high-frequency questions, edge cases, complaint-soothing scripts. The tone you use when a customer is already emotional. The framing for a delayed-shipping explanation. It's the hardest layer to build, and the most valuable. You mine it from historical conversations.
You need three layers because the cost of being wrong is not the same.
A Layer 1 error is a direct customer complaint. The AI gets the return policy wrong, tells a customer "30 days" when it's actually 7, the customer escalates, and brand partners get involved. So Layer 1 has to return the rule verbatim, not through LLM generation. Having the model "paraphrase" a rule is planting a landmine.
A Layer 2 error is a worse experience. Wrong product knowledge — the wrong size, say — and the customer may return the item, but they don't usually escalate.
A missing Layer 3 caps how effective the Agent can be. Without an experience layer, the AI hands anything complex to a human, and first-call resolution stalls.
If the vendor's proposal "vectorizes everything uniformly," the proposal shouldn't pass. This is the most common design error in 2026. Once Layer 1 rules have been rephrased by the LLM, complaint rates run higher than the pure-human baseline.
The knowledge base is never done. It moves through 200, 800, then 2,000
The knowledge base has no "done" state. It only has a current quality score. The staged minimum looks like this.
In the internal-test stage, you need 200 Q&A pairs, covering the top 50 questions, with top-5 recall above 60 percent. Internal staff test it, and you find the knowledge gaps.
At a small-traffic launch, you need 800 Q&A pairs, covering the main flows. Top-3 recall above 75 percent, answer accuracy above 80 percent. You put 10 percent of live traffic through it, with a human safety net.
At production scale, when you start replacing headcount, you need 2,000 or more Q&A pairs, including the edge cases. Top-1 recall above 70 percent, first-call resolution above 65 percent. That's when you start considering a reduction in customer-service headcount.
You can spread the work over time. Spend the first week on document diagnosis. Collect every existing customer-service document: policy files, brand handbooks, training material, email notices. Sort them into the three layers, and check how fresh each one is. An outdated policy is more dangerous than no document at all. Then identify the "oral knowledge" — important rules that live only in senior staff's heads, and were never written down.
The next two to three weeks are structural conversion, and this is the most critical, most labor-intensive step. Rewrite unstructured documents as Q&A pairs. That's the single most effective lever for retrieval accuracy. Each pair should carry a standard question, a standard answer, the applicable conditions, a source or owner, and a last-updated date. Break policy documents down to the smallest granularity. Don't treat the entire return-policy document as one retrieval unit. Phrase the questions in customer language, not internal jargon. Customers say "exchange," not "merchandise swap request."
The third piece of work is not a one-time pass: keep mining historical conversations. Export the customer-service platform's history and pull out the real phrasing variants of high-frequency questions. Cases the human reps handled well become standard scripts. Escalated cases get analyzed for what triggered them, and added to the edge-case handbook. The target is three to five phrasing variants for every high-frequency question.
One reminder, and it has to land in week one. Document conversion is labor-intensive. It is not a technical task. Senior customer-service reps, not engineers, own content quality. Engineering owns format and ingestion. If that staffing isn't locked in the first week, knowledge-base quality becomes the project's biggest bottleneck.
Dumping documents into a vector database is how you burn three months
A common trap is treating document vectorization as if the knowledge base were finished. In retail customer service, pure vector retrieval has three specific weaknesses.
A customer asks, "Can I return this Air Max 270?" Semantic search finds the general Air Max product description, not the return policy. A customer reads out a SKU, "AT4525-100." Vector retrieval offers nothing here; keyword exact match is what you need. And the conditional logic in policy documents — the "if … then …" structure — loses its shape once it's been vectorized.
The retrieval strategy that actually works is hybrid retrieval. Keyword search, BM25, is what you want for a precise SKU, a brand name, a policy keyword. It's built into orchestration platforms, and native in cloud managed search. Vector, or semantic, search is what you want for a vague-intent query like "Is this shoe good for running?" That needs an embedding model, for example a cloud text-embedding service. A hybrid rerank then combines both result sets and picks the most relevant top few. Rerank models are supported by orchestration platforms and by cloud managed search.
Storage and retrieval should follow the stage you're in. Don't start with a dedicated vector database. In the validation stage, if the team already knows the platform and document volume is below 50,000, the first choice is the orchestration platform's built-in knowledge base. Learning cost for the team is zero. When document volume is high, you need keyword-plus-vector hybrid retrieval, and you want production-grade stability, move to cloud managed search. Elasticsearch plus a vector plugin is only worth considering if you already have Elasticsearch experience and you need complex filters, by brand or category. A dedicated vector database such as Milvus is for massive-scale, purely semantic retrieval. It isn't recommended at this stage.
Use the platform's built-in knowledge base in stage 1. Migrate to cloud managed search only once the content has stabilized and conversation volume has ramped. Don't over-engineer day one for hypothetical future scale.
If a vendor recommends Milvus or Pinecone out of the gate, ask them: we're doing thousands of tickets a day; do we need that scale? If they can't answer, it's over-engineering.
On simple queries, domestic models match the overseas ones
Model selection in one line. For simple queries, domestic models are fully sufficient. The real risk isn't raw capability. It's the hallucination rate in edge cases.
Retail customer-service AI usually comes in three routes. Route A is overseas models, the OpenAI and Anthropic tier. Route B is domestic models, the Qwen, Baichuan, and GLM tier. Route C is mixed: domestic as the primary, overseas as a capability benchmark.
The real gap between A and B shows up across five specific capabilities.
On simple queries — policy lookup, order status — both routes are accurate and well formatted. There is no meaningful gap. Domestic models can handle this.
Multi-turn dialogue has to carry context. Route A tracks context stably and resolves references accurately. Route B is stable within 5 turns, and starts losing key information after that. Long conversations need extra context-management logic.
Complex complaint handling is emotion and logic at the same time. Route A detects the emotion, adjusts the tone, and gives a sensible resolution in the same reply. Route B can handle the logic, but emotion detection and tone modulation are noticeably weaker, and the escalation rate may rise as a result.
Tool calls — looking up an order, triggering a refund — are reliable as multi-step chains on Route A, with sensible error handling when something fails. Route B is reliable on a single step; in a multi-step chain it occasionally drops an intermediate result. You need extra retry and result-validation logic.
The edge case is a question that isn't in the knowledge base at all. Route A recognizes the gap and expresses uncertainty reasonably. Route B more often "confidently" gives the wrong answer — more hallucination. When that error lands on a Layer 1 rule, the error rate rises, and you have a complaint risk.
So Route B's main risk isn't that the model is weak. It's that the hallucination rate is higher, and the model doesn't know it. When customers ask something that isn't in the knowledge base, domestic models more often give answers that are wrong and still sound plausible. That's precisely why you need a Critic layer. Swapping in a more expensive model does not solve this. The full safety-check design is in 80% of Failed AI Agents Die in Ops, Not Tech.
The recommendation is Route C, and it isn't "sometimes A, sometimes B." It's a layered setup with explicit routing logic. Simple queries and standard answers go to Route B, a domestic mainstream model, low cost and low latency. Complex complaints, multi-step work, and emotional handling also start on Route B, and escalate to Route A only if a quality threshold isn't met, and only during the validation stage. There is no Route A in production. That's a compliance red line. The value of Route A is to benchmark Route B's ceiling during validation.
For simple customer-service work, domestic models are fully sufficient. Don't pay extra for "overseas models are stronger." The real risk is the AI fabricating answers in knowledge-base blind spots. That's a problem for a safety-check layer, not for a more expensive model.
Five layers, each one carrying part of the cost and the risk
Put model selection and the knowledge base together, and a complete customer-service Agent has five layers. The idea is one sentence: distribute cost and risk by layer.
Layer 1 is intent recognition and routing, on a light model. A domestic small model, 7B class, or a rule-based classifier is enough. It sorts requests into query, complaint, operation, and out of scope. You don't want a large-model call on every request; this layer can save 30 to 50 percent of inference cost. The value is concrete: about 20 to 30 percent of requests are simple policy lookups and don't need a large model at all. A small model or a rule at the routing layer is enough to pull that inference cost out.
Layer 2 is retrieval, and it should be hybrid: BM25 keyword search, plus vector search, plus rerank. You pull the most relevant documents and inject them into the model's context. Take the top 3 to 5; too many dilutes relevance, too few misses. Layer 1 rule queries return the rule verbatim and bypass the LLM. Hybrid retrieval beats pure vector by 15 to 20 percent in accuracy, especially on SKU and policy-keyword queries.
Layer 3 is generation, and the model is picked by complexity. Simple queries and standard answers use a domestic mainstream model: low cost, low latency. Complex complaints and multi-step work start domestic, and escalate if quality isn't there. Layer 1 rule queries don't go through generation. That's the accuracy guarantee.
Layer 4 is the Critic, a rule engine, no LLM. It runs a compliance check before anything is sent. The must-checks are unfulfillable promises, specific refund amounts, and internal information leakage. Escalation triggers include emotion keywords, and 3 unresolved rounds in a row. No matter how strong the model is, it can still emit something it shouldn't. The Critic is hard-coded rules, not model-dependent judgment. The full design is in 80% of Failed AI Agents Die in Ops, Not Tech.
Layer 5 is tool calls, which is system integration. The WeCom API receives messages, sends replies, and fetches customer information. The ticketing API creates, updates, and queries tickets. If the order system has an API, use it for logistics and status. The key principle: a failed tool call must have an explicit downgrade path. The Agent isn't just chatting. It can look up orders, create tickets, and trigger refunds — what a real money-moving refund workflow looks like, field by field.
Once that's said, the implementer's version of the structure is short. Layer 1 routes intent on a light model. Layer 2 does hybrid retrieval, and rule queries return verbatim. Layer 3 picks the model by complexity. Layer 4 is a rule-engine Critic. Layer 5 makes tool calls, and a failure has to degrade cleanly.
If the vendor's proposal has no Layer 4, no Critic, the proposal shouldn't pass. That means whatever the model generates goes out to customers. You've given them a customer-service Agent that can confidently fabricate a refund promise.
Inference is only about 5 percent. Headcount is the big line
Cost underestimation is one of the main reasons Agentic AI projects spiral. Start with the baseline assumption: thousands of customer-service tickets a day, AI handles 70 percent, about 3,500, and 30 percent go to a human, about 1,500.
The first bucket is inference, and architecture choices determine it directly. It's also the hardest operating cost to forecast, and the easiest to lose control of.
With Route B as the primary, a domestic 72B-class model, at about 4 calls per ticket and 1500 tokens on average, runs about 800 to 1,000 RMB a month. The embedding model, at about 5 retrievals per ticket and 512 tokens each, is about 60 to 100 RMB a month — almost negligible. The rerank model, at about 3 retrievals per ticket and per-call pricing, is about 500 to 700 RMB a month. The customer-service platform API depends on the existing contract or plan; confirm it separately, and fold it into the annual negotiation. All in, that's about 1,500 to 2,000 RMB a month, or about 15,000 to 20,000 a year.
The levers you can actually pull are in the architecture. Cut large-model calls per ticket from 4 to 3, and the cost drops 25 percent. Trim the system prompt and you save 200 tokens per call. Use a 7B small model for intent, not 72B, and routing becomes 90 percent cheaper. Layer 1 rule queries bypass the LLM; about 20 percent of tickets can return directly, and you save that share of inference cost.
A useful comparison: thousands of tickets a day, at 1,500 to 2,000 RMB a month, is about the cost of one or two monthly customer-service salaries. But this is the cost of AI handling 70 percent of tickets. The equivalent human cost is 30 to 50 times this number. Inference is not the project's main cost pressure. New headcount is.
The second bucket is new headcount, and it's the most underestimated one. Reducing customer-service reps creates a demand for new technical staff. You can't only look at how many people come off the line. You have to look at how many are added.
You have to have an AI ops engineer: monitor Agent performance, analyze error logs, tune prompts, handle edge cases, and they need LLM experience. The market for this role is tight. You can't substitute generic ops. You also have to have a knowledge-base content operator: maintain updates, handle knowledge-gap tickets, and coordinate policy updates with the business. This person can be reassigned internally, but they have to understand both the business and AI. Reassign from a senior customer-service rep. Rule-library maintenance can be part-time, and can be reassigned; the AI ops engineer can also own it. That work is Critic rule updates, new-complaint-type additions, and compliance checks. The rule logic has to come from someone who knows the business, not just from engineering. Data annotation is a concentrated early effort, for fine-tuning and evaluation, and for Q&A quality review. It can be outsourced, and later drops to part-time.
The hardest hire is the AI ops engineer. This is not a generic backend engineer. They need prompt engineering, LLM call-chain analysis, and the ability to find a root cause in conversation logs. Prioritize internal engineers who already have an interest in this work. On the open market, the role pushes to 50,000 RMB a month or more.
The third bucket is infrastructure. It's relatively fixed, and predictable. The vector database costs 0 in stage 1, because you use the built-in; stage 2 starts at 800 to 1,500 RMB, billed on storage and requests. The AI orchestration platform runs about 1,200 to 1,800 RMB a month on a cloud server, primary plus standby, and you can reuse it if it's already deployed. Conversation-log storage is about 100 to 300 RMB a month on object storage, and you should retain it for at least 6 months for audit. Monitoring and alerting is about 200 to 500 RMB a month. You have to have it; it's the foundation for the ops loop. All in, about 2,300 to 4,100 RMB a month, or about 28,000 to 50,000 a year, excluding platform hardware you already have.
The fourth bucket is system integration, the most underestimated line, and the one most likely to slip the schedule. Every system integration is an independent engineering task, and the maintenance never stops as upstream systems evolve.
The WeCom customer-service API takes 1 to 2 weeks. The interface is stable, but message-format constraints are tight and rich-text support is limited. Exporting conversations from the customer-service platform takes 3 to 5 days. It's a data export, though the data may need cleaning, and a large history is I/O-heavy. The ticketing API takes 2 to 3 weeks. The difficulty is the vendor: documentation may be incomplete, and a sandbox can be hard to get. Order and logistics queries take 3 to 4 weeks. This is the most complex integration. The systems are sensitive, IT has to be deeply involved, and the approval cycle is long. Knowledge-base update automation takes 2 weeks, and you first have to define the trigger: who updates, when it syncs, and how it's validated.
The lesson is straightforward. Order and logistics integration is the most likely critical-path blocker. Start the IT conversation in week one. Don't wait until the knowledge base is built to have that talk.
Put the four ratios on the table. Inference is 15,000 to 20,000 RMB a year, about 5 percent. It isn't the dominant cost, and architecture work can still bring it down. New headcount is 500,000 to 1.5 million RMB a year, about 70 percent. That's the biggest bucket, and the most underestimated. Infrastructure is 28,000 to 50,000 RMB a year, about 10 percent, relatively fixed and predictable. System integration is a one-time 300,000 to 800,000 RMB, about 15 percent, with the highest schedule risk. Start it in week one.
The conclusion is simple. Inference cost — the LLM API fees — is actually small. For thousands of daily tickets, it's only about 2,000 RMB a month. The real cost is people, the AI ops engineer and the knowledge-base operator, and the schedule risk in integration. All in, AI handling 70 percent of tickets is about 1/30 to 1/50 the cost of equivalent human handling.
If a vendor quotes only the "LLM inference cost" and leaves out "new headcount" and "system integration," push back immediately and ask for the full picture. This is the most common budget booby trap. Three months in, you'll get the "we need more budget" conversation, and your boss will ask why this wasn't clear up front.
The same kind of misalignment is easier to catch in a cost discussion than it is once the Agent is live and the metric starts to drift. The post-launch version of that gap is in the six reward-hacking patterns IT service management (ITSM) agents learn within 60,000 training steps.
Once the knowledge base is built, the model is picked, and the cost is on the table, what to watch after launch is in 80% of Failed AI Agents Die in Ops, Not Tech.
Building an agent right now?
Send me your worst conversation. Free failure teardown.
Subscribe
Get the next essay in your inbox.


Comments