Building a Knowledge Base Bot With a Chinese Vendor: Answering Correctly

A rag bot that produces correct knowledge base answers is built through four measured checkpoints: clean and current source material, retrieval that reaches the right passage, generation grounded in that passage rather than general fluency, and a review loop that feeds failed questions back into the system. A Chinese vendor can deliver each checkpoint, but the buyer must specify what evidence proves it, because a smooth demo does not show whether answers trace to source. Separately, the commercial arrangement covers cross-border invoicing, acceptance testing, and payment milestones that protect the buyer before and after launch. This article walks the build sequence checkpoint by checkpoint and sets out the acceptance evidence that defines a correct answer.

Checkpoint 1: source quality before any bot work

Correct answers start with the source documents, not the model. The knowledge base must contain current, reviewed material written in a consistent structure: clear headings, numbered policies, defined product terms, and no duplicate or superseded versions still in the set. A rag bot retrieving a stale manual or a contradictory policy will answer fluently and incorrectly, and no later tuning fully repairs a weak source base. The vendor should inspect the incoming corpus and flag documents that are outdated, internally inconsistent, scanned without OCR, or missing the detail visitors ask about. The buyer’s own content owner remains responsible for approving source material; the vendor indexes what has been reviewed, not material still in draft.

Ingestion format matters at this checkpoint. Text-layer PDFs, Word documents, web pages, spreadsheets, and scanned files each enter the pipeline through a different path: text extraction, table parsing, OCR with confidence flags, and manual review for poor scans. The vendor should state which formats it handles, how tables and lists survive ingestion, and how scanned material is reviewed before indexing. Documents should carry metadata: version, effective date, product line, audience, and whether the document supersedes an earlier one, so retrieval can prefer current sources. The ingestion rules a vendor should follow are detailed in document ingestion rules for RAG vendors.

Source redundancy and contradiction need an explicit cleanup pass. Where two documents state different return windows, warranty terms, or pricing tiers, the discrepancy must be resolved before indexing, because the bot may retrieve either version and cite it as authoritative. Duplicate copies of the same manual, internal drafts circulated alongside public versions, and expired promotions left in the set all create wrong-answer risk. The vendor should flag these conflicts for the buyer’s content owner to resolve, rather than indexing them as neutral alternatives. Approved terminology should be normalized across documents: product names, model numbers, and service labels written several ways should map to one controlled term before retrieval.

Checkpoint 2: retrieval that surfaces the right passage

Retrieval decides whether the model ever sees the relevant material. The pipeline chunks documents into passages sized to preserve context, embeds those passages into a vector store, and matches the visitor’s question against stored passages. A good retrieval setup returns the correct source passage in the top results for real questions, keeps section context attached to each chunk, and combines semantic similarity with keyword matching for exact terms, part numbers, and policy labels. The buyer should test retrieval on the own question set, checking whether the right source appears rather than judging only the final reply.

Chunking decisions directly affect retrieval: chunks too small lose the condition attached to a rule; chunks too large dilute the relevant passage with unrelated material. Manuals, policies, and FAQs need different chunking rules, and the vendor should tune them to the document type rather than applying one token window across the whole corpus. The vector database and embedding model choices, and the tradeoffs behind them, are covered in RAG cost, embeddings, and vector store choices. Retrieval quality should be measured before generation tuning begins, because a retrieval miss cannot be fixed by prompt wording.

Checkpoint 3: grounding answers to the retrieved source

Grounding is the rule that the reply stays inside what the retrieved source supports. The bot should answer from the retrieved passages, cite the source document and section, and avoid adding facts, prices, eligibility conclusions, or guarantees absent from the material. When retrieval scores are weak or the source does not cover the question, the bot should refuse or escalate rather than fill the gap with general knowledge. This refusal threshold should be configurable and tested against unsupported questions, not left to the model’s politeness.

Each accepted answer should carry a traceable reference: the document, the passage, and the source version it relied on. A reviewer opening a disputed session can check whether the reply matches the cited passage, and distinguish a retrieval failure from a generation misread. Grounding checks before the reply is sent should verify that numbers, dates, conditions, and product names match the source, and that the answer does not merge a general rule into a personal eligibility verdict.

Checkpoint 4: the review loop and failed-question feed

Correctness after launch depends on a continuing review loop. The bot logs sessions where answers escalated, repeated questions returned, or visitors expressed dissatisfaction; reviewers open those sessions, mark the failure type, and either correct the source, adjust chunking or retrieval, or add the question to the evaluation set. New real questions enter the test set each quarter, so regression testing catches drift after source or model changes.

The review loop needs session-level records: question, retrieved source and score, reply, rating, and escalation flag, each tied to a date and source version. Without these records, failures surface as complaints rather than as fixable issues. The vendor should describe who performs the review in the retainer, what turnaround applies, and how remediated items are verified before closing. The accuracy measurement methods behind this loop are detailed in measuring RAG accuracy in a knowledge bot.

Failed questions should be classified by cause so remediation targets the right layer. A missing source means the knowledge base lacks the material; a retrieval miss means the right source exists but was not surfaced; a grounding failure means retrieval worked but the reply drifted from the passage; a refusal error means the bot declined a covered question or answered an unsupported one. Treating all failures as one “bad answer” category leads to vague prompt tuning that does not fix the actual layer. The review log should carry this classification per session, and the quarterly report should show how many failures fall in each bucket so the maintenance effort goes where it is needed.

Checkpoint 5: cross-border invoicing, acceptance, and payment milestones

With a Chinese vendor, the commercial mechanics are settled in writing alongside the answer-quality plan. Cross-border invoicing should name the invoicing entity, currency and any currency conversion, payment method and bank routing requirements, tax or customs treatment where applicable, and the documentation the buyer receives for each payment. Buyers should confirm how invoices are issued and delivered, what supporting records accompany them, and whether payments are tied to milestones rather than a single signing deposit.

Payment should follow acceptance artifacts: a deposit at kickoff, a second payment when staging passes the baseline question set, a third at acceptance against written test cases, and a holdback released after a production review period. Acceptance criteria are agreed before the build: the number of test questions, expected answers, refusal and escalation cases, and the pass threshold per segment. The agreement should state what happens if acceptance fails: revision scope, who bears remediation cost, and the conditions under which the buyer can exit. Retainer terms for ongoing review should name included hours, per-item rates, and the content updates covered.

Timezone and language affect the commercial relationship as much as the build. The vendor works on GMT+8, so the weekly review call and incident response slot must fit a shared overlap, and written specifications and acceptance answers should be confirmed in the buyer’s language. Cross-border delivery should also cover account ownership: hosting account, messaging channel, domain or webhook references, and any third-party service accounts used by the bot should be titled or transferable to the buyer. The invoice, milestone schedule, and account transfer list should all appear in the written agreement, so payment and handover are tied to the same artifacts rather than handled informally after launch.

What a correct answer looks like at acceptance

At acceptance, a correct answer matches the source on facts and conditions, cites the source passage, keeps the approved tone, and does not overstate coverage or eligibility. Unsupported questions receive a clear refusal with an escalation path; partially covered questions state what the source does and does not say. The acceptance set covers product, policy, billing, complaint, and off-topic segments, scored separately rather than as one blended average. The buyer’s own reviewer should be able to follow each answer back to its source and confirm the grounding check fired.

The final go-ahead should rest on measured scores and the audit trail, not on a rehearsal demo. A vendor that can show source traceability, a defined refusal threshold, a review loop with logged failures, and clear invoicing and milestone terms is positioned to deliver a knowledge base bot that stays correct after launch. Where any checkpoint lacks evidence, the gap should be listed as a pre-launch remediation item rather than accepted on assurance. Acceptance should also include negative cases the bot must decline, so a strong answer score on covered questions does not mask over-answering on topics outside the source.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *