Skip to Content
WikiEnterprise SolutionsEnterprise Knowledge Base Q&A

Enterprise Knowledge Base Q&A

Employees ask a question in plain language and get the answer from policies, manuals and product documentation — with every claim traceable to its source, and nothing sensitive shown to anyone who should not see it.

Business Case

Who it is for

The most common buyer is the operations, IT or knowledge management team at a mid-to-large company. Policies, manuals and product documentation sit scattered across file shares, wikis and line-of-business systems. Employees cannot find them, and onboarding is measured in months.

Training is the second use: the same corpus that answers questions is also the material new hires read. Once the knowledge base exists, a shorter ramp-up follows without a separate system.

Customer support is the extension: an agent asks, gets an answer with citations, and quotes it to the customer. Paired with Conversation QA, one produces answers and the other audits them.

The problem

Four difficulties, the first three nearly universal:

  1. Cannot find it. Documents are scattered and site search only matches keywords, so phrasing it differently returns nothing. People give up and ask a colleague.
  2. Cannot trust it. Point a general model at internal policy and it will confidently invent. With no citation, nobody dares put it in front of staff.
  3. Cannot scale it. Experienced staff field the same questions, while new hires give up reading the docs.
  4. Cannot keep it current. A policy changes and the answer still reflects the old wording. Nobody knows what has gone stale — a compliance risk in regulated industries, not just an efficiency issue.

Before and after

AspectTodayWith the system
RetrievalKeyword search, fails on rephrasingNatural-language questions, semantic matching
GroundingNone, or staff dig through the sourceEvery claim cites its document, clickable
PermissionsIf a document is visible, everyone sees itFiltered by department and classification at retrieval time
FreshnessAnswer still reflects the old versionHash-based incremental sync, changes take effect the same day
QualityUnmeasurableRecall, faithfulness and relevance tracked continuously, regression on change

Expected outcomes

Public case studies report law firms cutting contract drafting from two hours to fifteen minutes, and equipment troubleshooting dropping from forty minutes to twelve. Shorter onboarding is often mentioned but the ranges vary widely — measure it on your own data.

On retrieval quality, baseline RAG typically lands at 60–70% accuracy, and careful chunking with hybrid retrieval and reranking reaches around 90%. That gap is the point of this solution: the outcome depends on data engineering, not on which model you pick.

All figures are industry reference values. Real gains depend on how well the corpus is governed and how much operational effort follows. Run a two-week single-department pilot and get your own baseline before planning wider rollout.

What has to connect

InputDetailNecessity
Document sourcesPolicies, manuals, product docs, FAQ (PDF / Word / Excel / web)Required
Permission modelDepartment and classification tags, or SSO and org structureRequired
Question entry pointsWeb, enterprise IM botRecommended
Ticketing / support systemsShare one source of truth with the support knowledge baseOptional

Timeline

Two to four weeks at the standard tier: one to two weeks to ingest a single department and calibrate answers, with permission filtering, incremental sync and wider rollout taking the rest. Private deployment is quoted separately.

Technical Approach

Scope note: this is a reference architecture, not a delivered system. Mechanisms are drawn from public industry practice and open-source implementations, listed at the end.

Reference architecture

Knowledge base Q&A reference architecture: parsing and chunking set the ceiling, permissions filter before retrieval, low relevance declines rather than guesses
#ComponentResponsibility
1Document parsingMulti-format, OCR for scans, tables converted to structure rather than flattened, section hierarchy and page numbers preserved
2ChunkingParameters chosen per document type, with metadata (source, page, section, timestamp, permission tag)
3Embedding and storageChinese-capable embeddings; the vector store must support payload filtering, which is what makes permissions possible
4Hybrid retrievalVector and BM25 in parallel, reranked, top_k narrowed to 3–5
5Generation and citationSwappable models, per-sentence citations, explicit refusal when relevance is low
6Incremental syncHash comparison, regrouping only changed documents, stale chunks cleaned up
7EvaluationSampled RAGAS across three metrics, regression after every corpus change

Data flow: documents are parsed and chunked, then indexed twice (vectors and BM25). A question is permission-filtered first, then retrieved both ways, reranked and answered. Anything below the relevance threshold lands in the knowledge gap store; everything above is logged for evaluation.

Model and component choices

CapabilityCandidatesRationale
Embeddingbge family / m3e / Qwen-EmbeddingStrong Chinese semantics, and deployable on-premises where data cannot leave
GenerationMultiple models, domestic and internationalOne key for all of them, routed by sensitivity and cost
Vector storeQdrant / WeaviatePayload filtering is a hard requirement for permissions, not a nice-to-have
EvaluationRAGASThree metrics automated, so evaluation becomes routine rather than a one-off

Key mechanisms

1. Permissions filter before retrieval. Authorisation is not a check applied to the finished answer; chunks the asker cannot see never enter the candidate set. Even a manipulated prompt cannot leak what the retriever never returned.

2. Per-sentence citation. References resolve to document, section and page. One click back to the source is what separates “usable” from “not worth the risk”.

3. Declining beats guessing. Below the relevance threshold the system says it could not find an answer and offers likely documents instead. Track the refusal rate — when it rises, the corpus has a gap, which is useful signal rather than a failure.

4. Hash-based incremental sync. Only changed documents get re-chunked, and old chunks are removed so stale wording cannot surface.

5. Knowledge gap collection. Unanswered questions accumulate as input for the next content pass, so the corpus grows into its coverage instead of quietly failing.

Integration

Documents are pulled in bulk from file shares or knowledge systems, with manual upload as a fallback. Questions arrive through the web or an IM bot. Permissions bind to enterprise SSO and org structure, with department tags as an interim step.

Risks and limits

  • Corpus quality sets the ceiling. Scans and unstructured documents need cleanup before ingestion. Skipping that step shows up directly in answer quality.
  • Permission tags must be accurate. Mislabeling either over-exposes content or hides what should be visible. Spot-check before launch.
  • Cold start needs human calibration. A test question set is required to tune thresholds; this effort cannot be skipped.
  • Regulated industries usually require private deployment. That changes timeline and cost, though embeddings and the vector store both run on-premises, so the path exists.

Rollout Path

StageDurationOutput
Validate1–2 weeksOne department ingested, 50–100 labelled questions, retrieval parameters and refusal threshold calibrated
Pilot2–4 weeksPermission filtering and incremental sync live, two to three departments, evaluation baselines established
ExpandPer departmentFull corpus ingested, IM entry point opened, gap collection routine

Governance and Ongoing Operation

Most RAG projects fail after launch, not before.

Chunk by document type. FAQ at 100–200 tokens, manuals at 500–800, tables converted to structure and stored separately. One parameter set for every document is a common reason retrieval plateaus.

Metadata matters more than the chunk itself. Source, page, section, update time and permission tag — those five determine whether you can cite, filter, or tell that content is stale.

Evaluation cannot stop at project close. The corpus changes weekly; evaluation belongs after every change, not in a one-time acceptance.

Read the questions nobody answered. Whatever dominates the gap store is either the next batch of documents to write, or a sign that some process is broken.

Where Open Source Fits

Open-source RAG products — RAGFlow, Dify, FastGPT — have already paved the retrieval, generation and citation path. They are mature, free and actively maintained, and plenty of teams run them successfully.

If all three of these hold, use open source. It is cheaper:

  • Documents are clean: native PDF or Word, no OCR needed, tables need no special handling
  • Permissions are simple: everything visible, or split by folder, with no classification levels
  • Someone can maintain it: watching for parse failures, tuning thresholds, adding content

Miss any one of them and the default configuration starts to slip, which is the work below:

BottleneckOpen-source defaultWhat this engagement covers
Scans, multi-column layouts, tablesYou write the parsing and cleanup pipelineParse pipeline, OCR, table structuring, with human spot checks
Permissions by department and classificationUsually stops at knowledge-base or document levelChunk-level permission tags filtered at retrieval
Documents change weeklyManual re-runs or full reindexingHash-based incremental sync with stale chunk cleanup
Nobody knows whether it worksNo evaluation stepRAGAS across three metrics, regression after change, refusal-rate monitoring
Problems after launchQueue an issue in the communityResponse and tuning within the engagement

The division of labour in one line: open source answers “can it run”, we handle “does it run accurately, under control, and with someone accountable”.

The two are not in conflict. Some clients prove the concept on open source first, discover the real bottleneck is document governance, and come to us afterwards. That path is fine — we would not suggest skipping validation and starting with a large programme.

Where Open Source Fits

Open-source RAG products — RAGFlow, Dify, FastGPT — have already paved the retrieval, generation and citation path. They are mature, free and actively maintained, and plenty of teams run them successfully.

If all three of these hold, use open source. It is cheaper:

  • Documents are clean: native PDF or Word, no OCR needed, tables need no special handling
  • Permissions are simple: everything visible, or split by folder, with no classification levels
  • Someone can maintain it: watching for parse failures, tuning thresholds, adding content

Miss any one of them and the default configuration starts to slip, which is the work below:

BottleneckOpen-source defaultWhat this engagement covers
Scans, multi-column layouts, tablesYou write the parsing and cleanup pipelineParse pipeline, OCR, table structuring, with human spot checks
Permissions by department and classificationUsually stops at knowledge-base or document levelChunk-level permission tags filtered at retrieval
Documents change weeklyManual re-runs or full reindexingHash-based incremental sync with stale chunk cleanup
Nobody knows whether it worksNo evaluation stepRAGAS across three metrics, regression after change, refusal-rate monitoring
Problems after launchQueue an issue in the communityResponse and tuning within the engagement

The division of labour in one line: open source answers “can it run”, we handle “does it run accurately, under control, and with someone accountable”.

The two are not in conflict. Some clients prove the concept on open source first, discover the real bottleneck is document governance, and come to us afterwards. That path is fine — we would not suggest skipping validation and starting with a large programme.

FAQ

What is RAG?

Retrieval-augmented generation. Before answering, the system retrieves relevant passages from your documents and grounds the reply in them. Compared with relying on pretrained knowledge alone, answers are traceable, changes to documents take effect immediately, and sources can be cited.

Why RAG instead of fine-tuning?

Fine-tuning suits changing output style or enforcing a fixed format. It does not suit knowledge that changes often — retraining on every document edit is not affordable. RAG also gives you citations, which fine-tuning cannot.

Does data leave the company?

It does not have to. Embedding models and vector stores both run on-premises, and with swappable generators you can restrict selection to models deployed inside the company or in an approved region.

Our documents are scans. Can they still be used?

Yes, after OCR and table structuring. Parsing quality determines everything downstream, so this step is not where to cut corners.

What accuracy should we expect?

Public figures are 60–70% for baseline RAG and around 90% after tuning. Governance and chunking strategy move the number far more than model choice.

Why does it sometimes say it cannot find an answer?

That is the refusal mechanism working. Answering below the threshold risks fabrication, which is a worse outcome than admitting a gap. A high refusal rate means the corpus needs content, not that the threshold should be lowered.

Sources

  • Open-source references: the rag_apps family (simple_rag / qwen3_rag / agentic_rag / contextual_ai_rag), spanning the minimal form through the managed enterprise form
  • Industry practice: document parsing and chunking, incremental sync, hybrid retrieval and reranking, permission filtering, RAGAS evaluation, refusal strategy — public technical material, retrieved October 2026
  • Outcome figures: published vendor cases covering contract drafting, equipment troubleshooting and onboarding
Last updated on