Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Knowledge Base Use Cases

Whether a knowledge base is reliable does not depend on the amount of material, but on whether the boundaries are clear, whether the sources are maintainable, and whether real questions can consistently retrieve the correct evidence.

The parameters below are only a starting point. First run import, retrieval, and usage with 3–10 representative materials, then expand based on a fixed question set.

Design first using the same method

1

1. Clearly define the final task

Clarify the judgment or deliverable the user needs to make, such as checking a policy, troubleshooting a fault, or generating a research report.

2

2. Define the material boundaries

Only materials that should be retrieved together during use belong in the same knowledge base. Content with different permissions, lifecycles, product models, or versions should be separated first.

3

3. Choose the sources and update method

Specify who maintains documents, notes, directories, and web pages, when they are replaced, and whether historical versions need to be retained.

4

4. Prepare acceptance questions

Prepare 3–10 real questions covering exact facts, conditional rules, colloquial phrasing, and easily confused versions.

5

5. Adjust the retrieval plan

Keep the configuration simple at first. Add embeddings when BM25 is not enough to handle synonyms; add reranking when the correct candidates appear but the order is unstable.

6

6. Connect to a dialogue or Agent

Use ordinary conversation for one-shot Q&A; bind an Agent when multi-step research, comparison, and file delivery are needed. Verify sources item by item before going live.

User case 1: Employee policy Q&A

Goal

Enable employees to look up travel approval, lodging standards, and reimbursement exceptions, and open the sources to verify the original text.

Material organization

  • Knowledge base: [Employee Travel Policy]

  • Entry: [Travel Approval Process]

  • Entry: [Lodging Standards Quick Reference]

  • Entry: [Travel FAQ]

由多条制度资料组成并全部就绪的员工差旅制度知识库
Policy clauses and FAQs are maintained separately; when one is updated, the entire set does not need to be redone.
Item
Starting point
When to adjust

Retrieval

Start with BM25

Add embeddings when employee phrasing differs greatly from policy wording

Reranking

Do not use for now

Enable when the correct candidate appears but the order is unstable

Material version

Keep only the current version

When historical audits require coexistence, include the year in the name

Answer requirements

Separate the conclusion, conditions, and source

Clearly mark when the material does not specify

Acceptance questions

  1. What is the maximum hotel cost for a business trip?

  2. Can overseas car rentals be reimbursed?

  3. Who approves when the estimated total cost exceeds 5,000 yuan?

  4. How is it handled if a hotel is booked without approval?

Dialogue prompt

Answer only based on the "Employee Travel Policy." Give the conclusion first, then list the applicable conditions and sources; if the material does not specify, write "The policy does not specify" and do not fill in with common sense.

User case 2: Product after-sales assistant

Goal

Organize the official manual, fault codes, and reviewed cases so customer service can first provide safe, traceable troubleshooting suggestions.

Material boundaries

Knowledge base or material group
Content
Maintenance principle

Official manual

Specifications, warranty boundaries, standard procedures

Keep model and document version

Fault codes

One fault per subsection

Mark applicable firmware and device model

Reviewed cases

Cases with confirmed causes and solutions

Unreviewed chat records must not be imported directly

When rules differ significantly across models, split them into independent knowledge bases by model to avoid the same fault code competing with itself.

Retrieval and Agent configuration

  • For PDFs, first spot-check the table of contents, tables, and two-column body text.

  • Fault codes rely on precise terminology; keep BM25.

  • When customer descriptions are more colloquial, add an embedding model.

  • Bind the official manual and reviewed cases to the after-sales Agent, and enable only [Knowledge Base Search].

Troubleshoot in three steps based on the device model, fault code, and symptoms. Indicate at each step whether the basis comes from the official manual or a reviewed case. When disassembly, electricity, or data erasure is involved, first warn of the risk and wait for confirmation.

Acceptance criteria

  • Do not apply steps from other models to the current model.

  • Safety warnings appear before the operation steps.

  • Official rules and case recommendations are kept separate.

  • When there is no supporting material, transfer to a human agent and do not guess.

User case 3: Research materials and reports

Goal

Extract verifiable evidence from papers, interview notes, and web snapshots, then have an Agent generate a source-backed comparison report.

Material organization

  • Build the knowledge base around the research questions; do not stuff all papers into one large repository.

  • Include author, year, and short title in the file name.

  • Mark interview notes with the interviewee's role, date, and whether they may be cited.

  • For web materials, record the crawl date because the knowledge base stores imported snapshots.

从提出真实问题、检查召回、定位问题到只调整一项并重新索引复测的知识库质量闭环图
First verify source coverage in the research repository with fixed questions, then hand it to the Agent for cross-document synthesis.

Agent prompt

Find evidence for "why users abandon first-time setup" in the bound research knowledge base. First list the original viewpoints and limitations by source, then summarize consensus, divergences, and hypotheses to be verified. Finally generate a Markdown report; do not write inferences as the interviewees' original words.

From evidence to deliverable

资料来源经过知识库召回和 Agent 整理后形成文字文件或多语言图片的内容工作流图
Keep the evidence and limitations first, then let the Agent organize them into a report; do not let the finished product obscure the original sources.

Acceptance criteria

  • Consensus is supported by at least two independent sources.

  • Differences retain their own conditions and are not forced to merge.

  • Citations, inferences, and recommendations are clearly labeled.

  • Web snapshots and paper versions are traceable.

Configuration notes: reusable design table

Item
Questions to answer

Goal

What judgment or result does the user ultimately need to make or deliver?

Boundaries

Which materials should be retrieved together, and which must be separated?

Source

How should files, notes, directories, and web pages be updated?

Parsing

Which types of documents are most prone to OCR, table, or ordering issues?

Retrieval

Is BM25 sufficient? When do embeddings and reranking become necessary?

Acceptance questions

Which 3–10 questions represent real usage?

Failure handling

What should be done when there are no results, conflicting versions, or no supporting material?

Maintenance

Who is responsible for replacing materials, reindexing, and backups?

FAQ

Should policies, manuals, and cases be placed in the same knowledge base?

Look at whether they should be retrieved together in the same question, and whether permissions and update cycles are consistent. When the differences are obvious, splitting the repository makes it easier to control source boundaries.

Can the case repository directly import all customer service chats?

Not recommended. First review the causes, solutions, and privacy content, and import only confirmed, reusable cases.

What needs to be done before expanding the materials?

Keep a fixed set of acceptance questions, import in batches, and retest. When new materials degrade the results, you can quickly locate which batch caused the issue.

Continue reading

Last updated

Was this helpful?