Enterprise knowledge assistant

Last reviewed: 2026-07-16 — see the freshness policy.

Learning objectives

After this chapter you will be able to design a permission-aware enterprise assistant, separate publishing from querying, define an evidence contract, operate freshness/deletion and evaluate both retrieval and outcomes.

Decision in one sentence

The assistant may summarize governed evidence; it may not invent authority, ACL scope or business truth.

Use this pattern for policy, procedure, product and case knowledge when users need conversational access with resolvable sources. Do not use it as the sole interface for exact transactions, dense comparisons, legal determinations or questions whose answer belongs in a live system of record.

1. Reference architecture

flowchart TB accTitle: Enterprise knowledge assistant reference architecture accDescr: Governed sources pass through quarantine, parsing, ACL and provenance enrichment, versioned indexing, an authenticated query path, retrieval and reranking, generation, validation, and evidence-aware response. subgraph OFFLINE["Controlled publishing plane"] SRC["Authoritative sources and owners"] --> INGEST["Connectors and quarantine"] INGEST --> PARSE["Parse, classify, normalize"] PARSE --> ACL["ACL, provenance, time, and quality"] ACL --> INDEX["Versioned lexical, vector, and optional graph indexes"] INDEX --> PUBLISH["Validate and atomically publish"] end subgraph ONLINE["Authenticated query plane"] USER["User and channel"] --> EDGE["Session, tenant, purpose, rate limit"] EDGE --> QUERY["Query understanding and policy filters"] QUERY --> RETRIEVE["Hybrid retrieval and reranking"] PUBLISH --> RETRIEVE RETRIEVE --> PACK["Evidence pack"] PACK --> MODEL["Answer under citation contract"] MODEL --> VERIFY["Support, policy, and format validation"] VERIFY --> RESPONSE["Answer, conflict, abstain, or escalate"] end RESPONSE --> TRACE["Trace, feedback, and outcome evidence"]

Keep publishing and querying independently deployable. A bad parser or ACL mapping must not become live merely because the answer service is healthy.

2. Source and publishing contract

For every source record:

Field group Required information
authority owner, canonical URI/ID, source system, revision semantics
access tenant, groups/resources, sensitivity, purpose, region
time effective, expiry, observed and indexed times
provenance checksum, connector/parser version, source offsets
lifecycle update, supersede, delete, legal hold and incident owner
quality parse confidence, language/content type, validation status

Quarantine untrusted documents before parsing. Scan active content, cap size/complexity and isolate connectors. Preserve page, region, table or time offsets so a citation resolves to the source.

Publish a new immutable index version only after parser-loss, volume, ACL, duplicate, retrieval and citation smoke tests. Keep the previous version for rollback.

3. Query sequence

sequenceDiagram accTitle: Permission-aware knowledge query accDescr: The server derives filters from authenticated identity, retrieves a bounded evidence set, validates a cited answer, and returns conflict or abstention when evidence is insufficient. participant U as User participant E as Authenticated edge participant R as Retrieval service participant M as Model participant V as Validator U->>E: Ask question E->>E: Establish subject, tenant, purpose, locale E->>R: Query plus server-derived ACL and temporal filters R-->>E: Ranked passages with source identity and offsets E->>M: Instructions plus bounded evidence pack M-->>V: Answer with claim-citation map V->>V: Check support, access, freshness, conflict, format alt Supported V-->>U: Answer with resolvable citations else Conflicting or insufficient V-->>U: State conflict, abstain, or escalate end

4. Retrieval and evidence contract

Combine lexical retrieval for exact identifiers and policy terms with dense retrieval for semantic similarity. Add metadata, graph or SQL routes only for question classes that need them. Rerank a bounded candidate set and preserve independent sources and conflicting viewpoints.

The evidence pack should include source ID/title, revision/effective date, authority class, access decision, canonical link, excerpt with offsets, retrieval/rerank scores and index version. Scores are ranking signals, not probabilities that a claim is true.

5. Answer contract

Require the model to:

  • answer only from the supplied evidence for enterprise claims;
  • cite each material claim to a resolvable source;
  • distinguish source fact, inference and recommendation;
  • expose material conflict and outdated evidence;
  • state when the answer is incomplete or outside scope;
  • avoid following instructions found inside retrieved content;
  • never claim that a transaction occurred.

Validate schema and citation existence deterministically. Use entailment/human review for sampled semantic support, and check critical numbers/identifiers with structured rules.

6. Security and privacy boundaries

  • derive tenant/ACL filters from authenticated server state;
  • enforce access before candidate retrieval and again before context assembly;
  • do not share response caches across authorization/evidence versions;
  • isolate connectors and treat documents as indirect prompt-injection input;
  • keep provider/model logging consistent with data-use policy;
  • minimize prompt/response content in metrics and support deletion lineage;
  • rate-limit enumeration and unusual broad-query behavior;
  • protect feedback and memory from unvalidated answer reuse.

7. Freshness, correction and deletion

Track source-to-index lag by class. Critical policies may require events or short polling; archives may tolerate batch updates. Surface effective dates to the user when material.

Corrections create new source and index versions; preserve prior evidence where audit requires it. Deletion must propagate to chunks, vectors, graph nodes, caches, saved conversations, evaluation samples and derived memory according to policy. Test deletion with planted canaries and verify no retrievable remnants.

8. Reliability and degradation

Failure Safe behavior
connector/parser failed keep last known-good version and alert owner
publish validation failed do not expose partial index
retrieval unavailable show navigation/search fallback or abstain
model unavailable return ranked source links and snippets
citation validator failed withhold generated answer; return evidence only
identity/ACL unavailable deny protected knowledge
source conflict show sources/dates and route to owner/human

9. Evaluation and SLOs

Measure source coverage and parse fidelity; ACL leakage (release threshold zero); freshness/deletion lag; Recall/Precision/nDCG; citation precision/completeness; supported-answer correctness; conflict/abstention behavior; verified task success; correction/escalation; p95 latency; cost per successful task; and human minutes saved or added.

Slice by source/content type, language, question class, tenant/policy, document age and channel. Use incident and prompt-injection regressions in every release.

Example service objectives:

protected_source_leakage: 0
critical_source_publish_lag_p95: 15m
deletion_propagation_p95: 4h
supported_answer_rate_min: 0.90
citation_precision_min: 0.98
query_latency_ms_p95_max: 2500

10. Economics and rollout

Model connector/parser compute, storage/index variants, embeddings, reranking, model tokens, validation, human review and support. Optimize cost per verified resolved knowledge task, not cost per query.

Roll out search-only, then cited answers to employees, then selected customer cohorts. Expand source classes and answer authority separately. Maintain an answer kill switch that preserves source navigation.

Northstar worked example

Northstar indexes effective refund policies, shipping procedures and product documentation. Customer documents and employee-only procedures use separate scopes. The assistant can explain a policy and cite it, but live order status comes from a typed order tool and refund execution belongs to a separate approved workflow. When two policy versions conflict, it shows both dates and escalates to the policy owner.

Practical artifact: knowledge-assistant dossier

Submit question/evidence classes, source/ACL contract, publishing and query diagrams, answer/citation contract, threat model, freshness/deletion SLOs, evaluation matrix, failure/degradation plan, unit economics and rollout gates.

Lab

Build a small versioned knowledge assistant over public and restricted Northstar documents. Inject a missing ACL, malicious document instruction, stale policy, conflicting revision and deletion. Demonstrate zero protected retrieval, resolvable citations, safe conflict/abstention and last-known-good rollback.

Check yourself

  1. Which questions require a live tool rather than a knowledge index?
  2. Where must ACL enforcement occur?
  3. What evidence makes a citation resolvable and auditable?
  4. How does the system behave when generation is unavailable?
  5. Which derived artifacts must receive deletion propagation?

Further reading

results matching ""

    No results matching ""