A Retrieval Assistant over Governed Content

Problem and outcome

A company wants an assistant that answers product questions for customers and support staff from its documentation, which is kept as structured Markdown in a repository. The content team owns the repository; a platform team owns search and the answer service.

Forces

Retrieval needs low latency and broad recall; product version and role constrain what is correct and permitted; the index must forget withdrawn content; the retrieval stack will change more often than the content governance.

Selected composition

Roots: THE QUESTIONS PEOPLE ASK (1), GOVERNED CONTENT SUBSTRATE (2) (structured Markdown through CONSTRAINED MARKUP PROFILE (11)), and RETRIEVAL CONTENT LAYER (3). From its choice set, STRUCTURED SOURCE SNAPSHOT (14), because the repository’s structure is authoritative. Operations: SEMANTIC CHUNKING (32), INDEX SYNCHRONIZATION (33), FILTER BEFORE RANKING (34), ANSWER FROM THE EVIDENCE (35), SIGNALS FROM READERS (44), and optionally CONTEXT-SENSITIVE HELP (36) if the product embeds help. Techniques: QUERY REFORMULATION (58), EVIDENCE RELEVANCE NOTES (59), GOVERNED CONTEXT ASSEMBLY (53), BOUNDARY SCREENING (55), ABSTAIN ON THIN EVIDENCE (61), RESUMABLE CHECKPOINT (66), CLASSIFIED FAILURE RECOVERY (67), and INDEPENDENT EVALUATION LOOP (80).

flowchart LR
    REPO["Markdown repository<br/>(profiled)"] --> SNAP["Snapshot"] --> CH["Chunks + envelopes"] --> IDX["Index generation"]
    Q["Question"] --> QR["Reformulate"] --> AF["Applicability filter"] --> RK["Rank"] --> EN["Relevance notes"] --> GA["Grounded answer"]
    IDX --> AF
    GA --> SIG["Signals"]
    EN -. "thin" .-> AB["Abstain"]

Rejected alternatives

Rendered-page retrieval would discard the repository’s structure. Bulk text export would lose version, role, and deletions. A single answer-quality score could not tell whether freshness, retrieval, or composition failed.

Handoffs, authority, and execution

The repository hands a versioned snapshot to chunking; chunking hands typed chunks with envelopes to synchronization; synchronization verifies membership, provenance, access policy, and deletions before switching the alias. At query time, retrieval and composition may branch, but they cannot widen the source scope. The content team owns accuracy and release; the platform team owns the index, the answers, and their evaluation.

Evaluation

Freshness, expected-unit retrieval, groundedness and usefulness of answers, abstention rate, latency, access decisions, and the cutover trajectory, measured separately. A good answer from a withdrawn unit fails.

Evidence

Structured Markdown and Markdown Validator supply the profiled substrate. raw-to-knowledge supplies one realization of filtered retrieval with fallback. The chunking, synchronization, and answer service must be built or adopted.