Final design
Does the overall design support the path from document to evidence-based answer?
The central decision is a controlled path from approved documents to evidence-based answers. The architecture stays manageable for the assumed collection and offers clear points for later extension.
Starting point Boundary, targets, load, contracts, data, architecture, flow, trade-offs and operations are defined.
Assumptions for the example case
Example design: one operator's internal knowledge, a bounded document collection and existing authentication. Numbers and targets are assumptions. The assistant reads knowledge; tool actions and open-web research are outside scope.
Bringing together decisions and evidence for Q-17
Overall architecture · Decisions, tests and steps back on the building block
System boundary · Knowledge assistant
Decision: Computationally intensive processing runs separately from responses.
Test: DV-17 is only visible with suitable search data.
Failure Step 5 provenanceDecision: Authorisation is checked before search, before passing context to the model and during the final check before output.
Test: Withdrawal during generation stops any output.
Failure Step 7 SequenceDecision: Rights, metadata and search are queried together.
Test: Withdrawal removes P-17 before any search.
Failure Step 2 RequirementsDecision: The model service only receives selected context.
Test: A-17 references P-17 and DV-17.
Failure Step 4 Contract- Knowledge Assistant container
- SQL inventory and original storage
- People, Source System and Model Service
Each test targets a specific component. A failed test returns to the assumption or flow it actually disproves.
The design at a glance
| Area | Decision | Justification |
|---|---|---|
| Scope | Internal reading assistant with existing authentication | Knowledge and impact are limited. |
| Preparation | Versioned import in the background | Incomplete document versions stay outside active search. |
| Persistence | Protected original storage and relational SQL storage with vector search | Sources, relationships and search representations have clear responsibilities. |
| Response path | Rights → Hybrid Search → Context → Model → Source and Rights Check | Each transition receives auditable inputs and outputs. |
| Quality | Expected evidence, unanswerable questions and domain review samples | Fluency and source count alone do not establish success. |
| Operations | Import age, search quality, latency and cost per response | Improvements are assessed throughout the journey. |
Scope
- Decision
- Internal reading assistant with existing authentication
- Justification
- Knowledge and impact are limited.
Preparation
- Decision
- Versioned import in the background
- Justification
- Incomplete document versions stay outside active search.
Persistence
- Decision
- Protected original storage and relational SQL storage with vector search
- Justification
- Sources, relationships and search representations have clear responsibilities.
Response path
- Decision
- Rights → Hybrid Search → Context → Model → Source and Rights Check
- Justification
- Each transition receives auditable inputs and outputs.
Quality
- Decision
- Expected evidence, unanswerable questions and domain review samples
- Justification
- Fluency and source count alone do not establish success.
Operations
- Decision
- Import age, search quality, latency and cost per response
- Justification
- Improvements are assessed throughout the journey.
First end-to-end verification
- A limited area of knowledge
- Start with approved test documents, two user roles and a small curated question set. Each answer must be traceable to the specific passage in the correct version.
- Explicitly showing errors
- Missing evidence, conflicting sources, a blocked document and model failure produce distinct visible results. Revoking access during generation withholds the affected output.
- Measure before expanding
- Record HitRate@10, supported claims, response time and actual token use. Evaluate reranking, model choice or a separate search platform on the same questions and permission variants; a technical error must not count as `insufficient_evidence`.
- Open production issues
- Agree document ownership, permitted model processing, retention, quality targets and escalation paths before operational use. This example leaves provider selection to that decision.
The next stage of development
First verify source fidelity on your own collection
A comparable set of questions makes improvements and backward steps visible.
- Trade-off
- More search steps can increase runtime, costs and error possibilities.
- Reassess
- Only expand if a specific question type or measured bottleneck justifies the next step.
Try it yourself
Track D-17 and Q-17 to A-17. Assign each building block a decision, a test case and a possible return.
A hint for your attempt
The final design is an evidence plan. Model and search options stay open until the document mix and test set establish their need.
Compare with a possible solution
- Scope
- Decision: Start with an internal reading assistant and existing authentication. Test: Two roles ask the same Q-17; expect only permitted sources. An action request stays within the reading scope and points to the responsible process. Return to step 1 when the collection or effects expand.
- Preparation
- Decision: Document D-17 version DV-17 becomes active only after complete processing. Test: One passage fails during import; expect `failed` or `processing`, 0 active partial versions and no search over them. Return to step 5 and the version model.
- Persistence
- Decision: Keep originals, metadata and derived search representations separate; references carry version, pipeline and position anchor. Test: Rebuild the index from DV-17; expect 100% of test anchors to resolve. Return to step 5 when an anchor is missing or the original is unavailable.
- Response path
- Decision: Enforce current permissions before search, model calls and output. Test: Revoke D-17 permissions at each checkpoint; expect 0 protected text fragments and the entire A-17 draft withheld. Return to step 7 for any permission violation.
- Quality
- Decision: HitRate@10, supported claims and domain review samples provide evidence; Q-17 ends with `answered`, `insufficient_evidence` or `conflicting_sources`. Test: Answerable, unanswerable and contradictory questions in the same set; target at least 90% HitRate@10. Return to step 2 or 8 when targets are missed.
- Operations
- Decision: Monitor import age, answer p95, technical error rate, cost and recovery evidence. Test: Model timeout, permission failure and index rebuild; count technical failures separately, and block approval when a position anchor is missing. Return to step 9 for response and recovery.
Apply to your project
Which smallest vertical knowledge path can you implement and test with representative questions?
Start your own design
Choose a small case from your project. The template collects the ten design tasks and leaves space for your sketches, decisions, and open assumptions. You can edit it in your text editor or note-taking app.
Download design template (.md)Compare the ten tasks with the example case
Purpose and boundary
Which collection and use are explicitly approved in your knowledge system?
In the example: An answer is useful only when the person can trace its claims to accessible document passages.
Requirements
Which test questions, role variants and knowledge gaps form your first quality set?
In the example: The design must achieve source fidelity, access protection and usable response time together.
Scale estimates
Which amount dominates your case: questions, document changes, index size, context or model quota?
In the example: A relational SQL datastore with vector search is a testable starting point at this scale. The decisive measurements are search latency, model quota and evidence quality.
Interfaces
What does your system's contract return when the correct domain result is empty or uncertain?
In the example: The answer is a structured result with evidence and status. Plain chat text is insufficient as a contract between the interface and backend.
Data and states
Which data is authoritative in your system, and which can be rebuilt without loss?
In the example: A relational SQL datastore manages metadata, permission references and versions. Document storage and the search index retain clear, separate responsibilities.
Overall architecture
Which component in your system decides on release, access and response status?
In the example: Two processing paths use one controlled collection. Separate search services and additional AI steps are added only when measurements establish the need.
Critical flow
What change between request and output could create an inadmissible response in your system?
In the example: Only verified references and content permitted at response time enter the answer. Factual correctness remains a separate quality criterion.
Bottlenecks and trade-offs
What real-world error pattern justifies an additional search level in your system?
In the example: Each additional retrieval stage must provide more relevant evidence or better answers and justify its cost and latency.
Operations and security
Which quality deviation triggers which role and next action for you?
In the example: Technical operations and knowledge owners share quality work: operations keep the processing path functional; domain owners review content and source fidelity.
Final design
Which smallest vertical knowledge path can you implement and test with representative questions?
In the example: Controlled handling of sources makes a knowledge assistant useful. Retrieval, permissions and quality checks are as much part of the design as the language model.