Enterprise AI Project Wiki · Data, knowledge, and models
Knowledge base
Also calledKB · Enterprise knowledge base · Internal knowledge base · AI knowledge base · Document knowledge base · Knowledge repository · 知识库
A knowledge base is a governed knowledge collection and delivery capability with an explicit business scope and accountability boundary. It stores or connects approved knowledge sources and usable representations, records content identity, structure, meaning, version, effective time, provenance, access rights, and quality state, and enables people or systems to retrieve, locate, cite, and maintain that knowledge.
A knowledge base makes knowledge findable, usable, and maintainable; it is not a shared folder
Putting 50,000 files in one location proves only that content is stored together. If users cannot tell which file is effective, where a rule applies, how to find an earlier version, which source wins a conflict, or how restricted content is isolated, the collection cannot support reliable business answers. A knowledge base adds identity, structure, accountability, access, time, and provenance to content.
A knowledge base may contain documents, approved Q&A, and terminology, and may also connect business records, master data, rule tables, knowledge graphs, and external sources. It does not require copying everything into one product. What matters is a common registration, governance, and access method that resolves each knowledge item to an approved source and effective state.
NIST describes RAG as pairing a generative model with a separate retrieval system or knowledge base: relevant information is retrieved and supplied as context. A knowledge base therefore need not contain a generative model, and a vector index alone does not constitute a complete RAG system.
Define whom the knowledge base serves, what it can answer, and what it must not do
The same material used by customer service for procedure, compliance for rule decisions, and customers for public answers carries different authority. Define users, questions, time, and prohibited use before choosing sources and the conditions under which the system must say it does not know.
Business purpose
State whether it supports employee search, customer service, technical support, sales material, operating guidance, compliance lookup, project handover, or an AI assistant. Do not substitute the vague goal of ‘capturing knowledge’ for an observable outcome.
Users and systems
Identify employees, suppliers, customers, administrators, retrieval services, AI applications, and automations, including their identities, permissions, languages, devices, and situations of use.
Answerable questions
Maintain representative questions and identify the source, time basis, and expected answer form for each class: fact, procedure, rule, definition, comparison, quotation, or human contact.
Prohibited decisions and actions
Define what the knowledge base cannot decide, such as live account status, unapproved legal interpretations, high-risk automatic approvals, or cross-tenant information outside the caller's authority.
Business boundary
Constrain legal entities, departments, regions, products, customers, processes, languages, and historical periods. Calling a repository ‘company-wide’ does not prove company-wide coverage.
Consequences of error
Distinguish an incorrect general explanation from use of an expired procedure, disclosure of confidential information, misstatement of contractual obligations, or an incorrect system action. Authority, review, and stop controls follow from the consequence.
Success definition
Evaluate task completion, correct-source discovery, reduced transfers, retrieval coverage, citation quality, zero permission leakage, update timeliness, and maintenance cost together—not document count or query volume alone.
A complete knowledge base normally separates sources, usable representations, and control information
Originals preserve evidence, parsed passages support discovery, and metadata and access rules govern use. Keep the three linked but distinct so the team can return to an original and update or remove every derivative.
Source connection layer
Connect official document repositories, operational systems, master data, rules, records, expert confirmations, and external sources. Preserve original location, snapshot, acquisition method, and accountability instead of treating a personal download as the sole original.
Original or controlled content layer
Keep an approved original or stable reference, including text, tables, images, attachments, records, and API results. Separate originals from parsed text, translations, summaries, and other derivatives.
Structured knowledge layer
Represent terms, entities, attributes, relationships, classifications, states, rules, Q&A, and procedures as explicit queryable objects for deterministic answers, filtering, and reuse.
Retrieval representation layer
Hold chunks, full-text fields, keywords, entity tags, embeddings, vectors, and reranking features. These are retrieval representations and do not automatically become new authoritative sources.
Management metadata layer
Record source ID, title, topic, language, owner, version, validity, access, quality, provenance, processing state, retention, and withdrawal flags.
Citation and locator layer
Resolve results and answers to a page, section, table, record, point in time, or stable anchor, and detect when a content change invalidates a citation.
Feedback and operations layer
Capture no-result queries, poor results, user corrections, content issues, access denials, update work, and incident evidence. Feedback is improvement input; it does not become official knowledge without approval.
Document, Q&A, rule, graph, and hybrid knowledge bases solve different problems
Long documents preserve explanation, Q&A supports stable frequent questions, rule structures support determinate decisions, and graphs support entity relationships. Choose form from task and evidence instead of forcing every source into the currently fashionable representation.
| Form | Suitable content and limits |
|---|---|
| Document-centric | Preserves the full context of policies, manuals, contracts, instructions, and reports for reading and citation. Parsing, segmentation, and version governance are still required; long documents do not guarantee good retrieval. |
| Q&A-centric | Provides approved direct answers to frequent, well-bounded questions. It can oversimplify complex rules, so each answer needs its full source, conditions, and maintainer. |
| Terminology and taxonomy | Uses controlled vocabularies, classifications, and synonym relationships for consistent language, filtering, navigation, and query expansion. Models such as SKOS organise concepts; they do not automatically assert all business facts. |
| Rule and decision | Structures conditions, conclusions, priorities, and exceptions for stable decisions. Only approved rules belong here, and complex policy interpretation and factual inputs still require other sources. |
| Knowledge graph | Represents entities and relationships for cross-source queries, impact analysis, and multi-hop questions. Building a graph does not by itself resolve entity conflicts, missing facts, or source accountability. |
| Case-based | Preserves problems, context, handling, and outcomes for similar-case retrieval. Past treatment is not necessarily the current rule, and cases may contain sensitive facts or exceptional decisions. |
| Hybrid | Combines originals, structured facts, rules, terminology, graph relationships, and retrieval indexes. This often fits enterprise reality, but identity, version, access, and provenance must be consistent across forms. |
The knowledge model and metadata determine whether content can be interpreted and filtered correctly
Two similarly titled policies may apply to different regions, products, and dates. Without object type, version, effective period, owner, and access labels, retrieval sees textual similarity but cannot decide applicability.
- Knowledge objects
Define stable IDs and granularity for documents, sections, records, facts, terms, entities, relationships, rules, Q&A, procedures, and cases.
Object catalogue, ID convention, sample records
- Business semantics
Record approved names, synonyms, definitions, scope notes, units, states, and relationship direction so that departments do not use one word for different objects.
Glossary, taxonomy, semantic mappings
- Source and accountability
Link every item to a source version, creation or transformation activity, content owner, approver, maintainer, and conflict authority.
Provenance chain, role register, approvals
- Time and state
Distinguish creation, publication, approval, effective, expiry, acquisition, and index time, plus draft, active, superseded, withdrawn, and archived states.
Validity intervals, state events, version history
- Applicability and access
Record organisation, region, product, process, role, language, classification, tenant, permitted use, and prohibited output so filtering occurs before retrieval.
Scope tags, access policies, permission tests
- Structure and location
Preserve heading hierarchy, page and section, table headers, attachments, record keys, anchors, and neighbouring context so a fragment remains understandable and citable.
Parsed structure, locators, original links
- Quality and lifecycle
Record completeness, currency, consistency, parse status, known gaps, review status, review-by date, replacements, and disposition requirements.
Quality results, issues, review and exit tasks
Build from business questions, then acquire, organise, validate, and publish
Uploading everything first often creates a large repository that cannot answer responsibly. Begin with valuable questions, eligible sources, and a judgement method, then onboard, organise, validate, and release in stages so each content set can show what it serves.
1. Confirm the answerable scope
For each user task, define the question, correct answer form, source, permission, historical basis, consequence of error, and human escalation.
2. Inventory and approve sources
Identify official content, systems of record, experts, and external sources. Confirm ownership, rights, applicability, version, and quality instead of ingesting everything accessible.
3. Design objects and metadata
Decide what remains original text, what becomes a fact or rule, and what needs terminology relationships. Standardise identity, version, access, provenance, and locators.
4. Establish secure acquisition
Use controlled connectors, exports, or events and retain snapshots, checksums, and failures. Separate raw, intermediate, and approved publication zones.
5. Transform and organise
Parsing, OCR, cleaning, translation, classification, entity resolution, rule structuring, and chunking must create traceable derivatives; anomalies enter human review.
6. Build indexes and access services
Choose structured query, full text, keyword, vector, graph, or hybrid retrieval by question, and apply access, status, time, and scope filters before retrieval.
7. Validate by layer
Test sources and transformations, knowledge objects, access, retrieval, citation, and final answers or actions separately, including normal, boundary, conflict, insufficient, withdrawn, and malicious cases.
8. Publish after authorised confirmation
Content, business, data, security, and user teams confirm scope, gaps, risk, and maintenance. A successful index build is not release approval.
9. Monitor and maintain
Track misses, wrong sources, stale content, denied access, feedback, and cost. Reprocess changes with version history, and withdraw content and derivatives when exit conditions are met.
Content, business, technology, and users share knowledge-base accountability
Content owners confirm meaning, business owners decide use and risk, technology maintains ingestion and retrieval, and users reveal real problems. Without roles, obsolete material remains live and retrieval failures are blamed vaguely on the model.
Business owner
Owns the business outcome, risk, priority domains, and matters that must not be answered or executed automatically, and coordinates cross-functional conflicts.
Content owner
Confirms official status, applicability, version, interpretation, and changes for a content class and approves or withdraws it. Retrieval algorithms cannot own this decision.
Data and records owner
Confirms authority, quality, lineage, retention, and record status for structured facts, keeping historical facts distinct from current knowledge.
Knowledge administrator
Maintains taxonomy, terminology, metadata, connections, quality issues, review queues, and the content register so objects remain consistently findable across sources.
Technology team
Operates connectors, processing, storage, indexing, query, access enforcement, monitoring, backup, recovery, and rollback without deciding business meaning.
Security, privacy, and legal
Assess confidentiality, personal data, licensing, external services, prompt injection, cross-border movement, and incident response, and approve the required controls.
User team
Supplies real questions, validates answers and process impact, reports gaps and errors, and verifies usability and escalation. Feedback enters review rather than rewriting knowledge directly.
Change board or adjudicator
Resolves cross-source conflict, high-impact rules, structural and model changes, exceptions, and downstream impact, with a traceable decision and effective time.
Permissions must survive from the source through chunks, results, citations, and caches
A restricted document must not lose its access boundary when split. Carry permission into derivatives, indexes, results, citations, and caches and reassess it for user, tenant, object, and purpose. High relevance is not authority to see.
Identity and least privilege
Authorise real users and service identities by tenant, role, object, attribute, and purpose. Permission to maintain an index does not imply permission to read every original.
Pre-retrieval filtering
Narrow candidates by permission, source state, validity, and region before text or vector search. Removing sensitive results afterwards has already exposed them to the context pipeline.
Tenant isolation
Choose isolated stores, isolated indexes, a shared index with strong filters, or a justified hybrid. Test identity mapping, cache keys, logs, backups, and operator access for cross-tenant leakage.
Secrets and sensitive content
Credentials, private keys, and one-time tokens do not belong in a general knowledge base. Minimise, mask, or isolate personal and commercial data; citations must not leak titles, paths, or identities either.
Untrusted content
External pages, email, attachments, and uploads can carry malicious instructions, scripts, or poisoned content. Scan files, separate content from system instructions, restrict agent tools, and preserve provenance.
Integrity and audit
Protect originals, metadata, permissions, and indexes against unauthorised change. Log acquisition, approval, view, export, update, denial, withdrawal, and administration for incident reconstruction.
Vendors and data paths
Determine whether parsing, embedding, search, model, and monitoring providers retain or train on content, use subprocessors, transfer regions, support deletion, and notify incidents.
Acceptance must test content, retrieval, answers, and access separately
A wrong answer can start with a wrong source, lost parsing, missed retrieval, bad model combination, or failed access filtering. Layered evaluation locates responsibility and prevents one overall Q&A score from hiding a severe leak or source gap.
Content correctness
Sample original identity, version, applicability, completeness, parsing, and structuring, with special attention to tables, images, negation, exceptions, formulae, attachments, and OCR errors.
Coverage
Use registered questions to confirm that an adequate source and answer basis exist. Segment by topic, user, region, language, normal, exception, and high-risk cases; document count is not coverage.
Retrieval quality
Label relevant and prohibited results for test questions and measure Precision@K, Recall@K, first correct rank, no-answer queries, and post-filter coverage.
Source and citation quality
Verify that results come from an allowed correct version and citations are specific, faithful, complete, and sufficient. An expired or low-authority fragment must not support a high-impact conclusion.
Final task outcome
Test whether users can complete the lookup, decision, or procedure; assess AI correctness, relevance, completeness, grounding, refusal, and whether tool actions obey deterministic controls.
Access and security
Test self, delegate, cross-department, cross-tenant, leaver, revoked access, shared links, caches, exports, and malicious documents. No average score can offset an unauthorised hit or citation leak.
Timeliness and change
Measure source-change-to-effective time, removal of old versions from current search, historical traceability, deletion propagation, and failure alerts.
Operability
Verify owner notifications, issue closure, reproducible processing, restorable backups, rebuildable indexes, observable cost and latency, and independent operation by the receiving team.
A knowledge base must preserve source conflicts and must not turn gaps into answers
Value includes knowing when an answer is unavailable. On conflict, an obsolete version, missing attachment, or no eligible evidence, return a visible state and accountable route instead of allowing a generator to fill the gap from plausibility.
Preserve conflict
Keep each conflicting value, rule, or interpretation with its own identity, scope, and time and mark the conflict. Do not silently overwrite it during cleaning, graph construction, or indexing.
Apply question-specific precedence
The role of current policy, historical record, attribute system of record, contract, and interpretive material must be approved for the question. The precedence rule itself needs an owner, version, and effective date.
Stop high-risk results
When conflict affects money, access, compliance, identity, or an external action, stop definitive answers and tool execution, show disclosable differences, and route the case to an authorised decision-maker.
Mark insufficient evidence
When a source, effective version, attachment, permission, regional coverage, or sufficient evidence is missing, record the gap and owner. Return that the current knowledge base cannot confirm the answer instead of filling it with model memory.
Distinguish no retrieval from no knowledge
No result may reflect the query, chunking, indexing, or permission, or a genuine content gap. Diagnose the stage before rewriting a query, adding content, or escalating.
Close and propagate
After adjudication or supplementation, correct the source or object, regenerate derivatives and indexes, regress affected questions, and record prior wrong answers, notifications, and downstream remediation.
Versions and derivatives must be controlled from onboarding through retirement
After a document is retired, parsed text, chunks, vectors, caches, and evaluation questions may remain. Propagate addition, revision, withdrawal, and deletion through derivatives while retaining needed history so present answers and past evidence stay explainable.
Onboard
Review scope, rights, quality, access, and capacity before admitting a new source, domain, or audience into the approved publication zone.
Update
A source change triggers reacquisition, parsing, structuring, chunking, embedding, and indexing. Compare added, modified, deleted, and permission changes and run regression tests.
Coexisting versions
Use the effective version for a current question and resolve the version that applied to a historical question. Models such as DCAT make resource versions and lifecycle explicit rather than overwriting one file.
Withdraw
When authenticity, rights, integrity, security, or business approval fails, stop new retrieval, isolate chunks, indexes, and caches, and assess earlier answers and actions.
Delete and retain
Apply records, contract, privacy, and audit duties to originals, derivatives, feedback, queries, and logs. Source deletion must propagate to controllable indexes, vectors, caches, and evaluation sets.
Rebuild and recover
Retain the source inventory, code, configuration, models, rules, permission mappings, and processing versions so a damaged index or platform migration can be rebuilt from approved sources—not unexplained surviving vectors.
Retire and hand over
State the replacement channel, export content and metadata with provenance and access constraints, revoke connections and secrets, handle vendor copies, and transfer unresolved issues.
Construction example: a procurement knowledge base
This customer-independent procurement knowledge base keeps policy, delegation tables, procedure, and live business data separate while using them together. The focus is permission, version, update, and stop conditions for each class—not a database choice.
Scope
The first release supports purchase requesters and approvers with required material, approval rules, status meaning, exception handling, and contacts. It does not decide legal questions or approve payments automatically.
Content combination
Procedure policies and delegation tables retain originals and validity dates; supplier and organisation identity connects to master data; request facts use an authorised live API; frequent questions become approved answers with sources.
Knowledge objects
Model request, supplier, organisation, role, state, rule, evidence item, exception, and handling step, using stable IDs to connect clauses, system fields, and historical versions.
Access
Employees see public procedures and their own requests, delegates act under valid delegation, approvers see their organisational remit, and sensitive bank and contract content stays outside general retrieval context.
Conflict and insufficiency
A difference between the delegation table and training material is retained and resolved under approved precedence. Missing regional policy or unknown live status causes a stop; no threshold or business state is invented.
Acceptance
Test current and historical thresholds, normal and excess requests, missing evidence, duty conflicts, unauthorised users, rule updates, withdrawn documents, and API failure; inspect sources, citations, answers, refusals, and escalation.
Handover
Transfer source and object catalogues, metadata, access matrix, connector and processing configuration, test set, quality results, monitoring, backup and rebuild procedures, update workflow, owners, and unresolved gaps.
Enterprise AI can use a knowledge base for evidence, but retrieval, generation, and action still need controls
A knowledge base supplies governed material; AI still chooses which collection to query, which passages to take, how to combine them, and whether to call a tool. Every step can fail or exceed authority, so correct content does not replace verification of the full RAG and agent chain.
The knowledge base is not model memory
External controlled content can change without retraining the model. Pretraining knowledge cannot substitute for project sources, access rules, and version state.
The knowledge base is not all of RAG
RAG also includes query understanding, source or tool selection, retrieval, reranking, context assembly, prompting, generation, citation, and evaluation. Correct knowledge does not guarantee the rest of the chain.
Select collections by question
One assistant may query a policy base, product base, live business tool, and case base separately. Tool descriptions must state scope, input, output, access, time, and non-answerable matters so an agent does not search the wrong collection.
Retrieve only necessary context
After access and validity filtering, retrieve enough but not excessive content and preserve titles, positions, table headers, definitions, exceptions, and source labels. Long contexts add noise and exposure.
Treat retrieved content as untrusted
Instructions inside a source cannot change system policy or cause unauthorised tool use. Models consume clearly delimited data; deterministic checks and human approval constrain tool parameters and high-risk actions.
Ground claims individually
Distinguish direct facts, rules, combinations, and inferences and connect each important claim to accessible specific evidence. Expose limitations and stop when sources conflict, expire, or are insufficient.
Evaluate end to end
Beyond retrieval Precision and Recall, test correctness, relevance, completeness, grounding, citation faithfulness, refusal, access leakage, malicious content, tool selection, side effects, latency, and cost.
One like or edit must not become official knowledge for the next answer
User feedback, support rewrites, and model summaries help reveal gaps but begin as candidate content. A content owner checks source, scope, and wording before publication. If every edit writes back automatically, one accidental error repeatedly gains a new appearance of authority through retrieval.
Replay the version combination
Preserve source, original, derivative, index, embedding model, retrieval configuration, prompt, generative model, access policy, tool, and evaluation-set versions to locate the failing layer.
How a knowledge base differs from adjacent concepts
A shared folder stores files, a database stores records, a vector store supports similarity, and RAG is an answer chain. A knowledge base may use each component, but governed content, meaning, access, and maintenance responsibility define it—not one storage technology.
| Concept | Boundary from a knowledge base |
|---|---|
| Knowledge source | The original or accepted origin of content. A knowledge base organises, connects, and delivers approved content and derivatives from one or more sources. |
| Knowledge management system | Covers organisational objectives, culture, people, processes, and governance for creating, sharing, applying, and improving knowledge. A knowledge base is one possible capability within it. |
| Document repository or folder | Primarily stores and collaborates on files. It becomes part of a knowledge base only with source scope, semantic structure, version validity, consistent access, retrieval validation, and maintenance ownership. |
| Content management system | Manages creation, approval, publication, and presentation workflows and may host or source a knowledge base. Product features do not ensure correct or answerable knowledge. |
| Database | Stores and queries data under a schema and may be a storage component or fact source. It does not automatically supply business meaning, source accountability, document knowledge, or a retrieval experience. |
| Search engine or index | Matches and ranks representations of source content. A knowledge base additionally governs approved content, semantics, authority, access, version, quality, and maintenance. |
| Vector database | Stores and searches vectors for semantic recall. It does not automatically provide ingestion, exact keyword search, permissions, provenance, citations, conflict handling, or lifecycle. |
| Knowledge graph | Represents knowledge as entities and relationships and may form a structured layer or one knowledge-base form. A knowledge base may instead centre on documents, rules, and Q&A. |
| RAG | A system pattern that retrieves external information as generation context. A knowledge base often supplies that information, while RAG includes the retrieval-to-model chain. |
| Model training corpus | Changes model parameters and usually cannot be updated, filtered, and cited item by item at answer time. A knowledge base remains externally controlled and can enforce current access. |
| FAQ | A structured content type of questions and approved answers that can be one part of a knowledge base. A standalone FAQ often lacks complex sources, rules, history, and cross-object relationships. |
Sources and scope
This entry explains a knowledge base in enterprise software and AI projects: a governed collection and delivery capability that organises source content, structured facts, business rules, terminology relationships, metadata, provenance, access, and versions within a defined scope so approved users or systems can find, interpret, and use recognised knowledge. A knowledge base is not synonymous with a shared folder, document management system, database, search engine, vector database, knowledge graph, model-training corpus, model parameters, or RAG system; those can be a source, representation, store, or use pattern. This entry does not fully define a knowledge management system, content-management product, database or graph design, document chunking, embeddings, vector or hybrid retrieval, ranking, prompting, model selection, complete RAG or agent architecture, copyright and privacy law, or sector recordkeeping. Accountable project roles must approve what the knowledge base contains and answers, who may access it, which content is authoritative, and how it is updated and accepted.
- ISO 30401:2018 — requirements for establishing, implementing, maintaining, reviewing, and improving an organisational knowledge management system; the published edition is under revision
- ISO/IEC 5392:2024 — reference architecture and common vocabulary for knowledge engineering roles, activities, construction layers, components, and system relationships in AI
- ISO/IEC 42001:2023 — AI management system framework for policy, accountability, risk, data governance, transparency, monitoring, and continual improvement
- ISO/IEC 5259-2:2024 — measurable data quality model for analytics and machine learning using structured and unstructured data
- W3C SKOS Recommendation — exchangeable knowledge organisation using concepts, preferred and alternative labels, hierarchies, associations, and notes, distinct from formal fact assertion
- W3C PROV-O Recommendation — provenance through entities, activities, agents, generation, use, derivation, revision, and attribution
- W3C DCAT 3 Recommendation — identifiers, versions, lifecycle, provenance, quality, citation, data services, and accountability in resource catalogues
- NIST RAG definition — a generative model paired with a separate retrieval system or knowledge base whose relevant information is supplied as generation context
- NIST AI RMF Core — data and third-party sources, accountable roles, documentation, risk measurement, monitoring, and lifecycle governance
- NIST AI 600-1 — source and content provenance, fact checking, third-party data, privacy, security, and continual evaluation for generative AI
- NARA trustworthy records guidance — reliability, authenticity, integrity, usability, and preservation of content, context, and structure
- Microsoft Azure RAG design and evaluation guide — preparation, chunking, enrichment, embedding, indexing, retrieval, context, generation, and stage-level evaluation
- Microsoft input, context, and retrieval security guidance — permission-aware indexes, document security trimming, metadata filters, citations, untrusted content, and prompt-injection defences