The overall architecture
How do the processing and response service share the released state of knowledge?
The import runs in the background; a question runs through the answer service. Both ways use versioned documents and the same current rights reference. For start-up, we combine relational metadata with a vector search in relational SQL storage.
Starting point Versions, rights and passages have been clarified; now two runtime paths with clear transfers are needed.
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.
Ingestion and answering use the same knowledge version
Container view · separate ingestion and response
System boundary · Knowledge assistant
- Knowledge Assistant container
- SQL inventory and original storage
- People, Source System and Model Service
Ingestion creates approved search data. The answer API checks permissions, queries the SQL collection and sends only selected evidence to the external model.
Divide the answer API into domain modules
Component view · answer API and model handoff
Container · Response API
- Response API module
- Supporting documents and metadata
- External model service
Retrieval supplies evidence to context assembly and the model adapter. The model returns an unchecked draft; structural checks verify references, while source fidelity also requires domain acceptance.
Mapping domain responsibilities
| Domain task | Runtime component |
|---|---|
| Document preparation | Import Worker with Extraction, Chunking and Embedding Adapter |
| Authorisation check | Access module in search, context formation and output |
| Search and Retrieval | Full text and vector search; merge hits |
| Model integration | Bounded model adapter within the answer service |
| Source attribution | Reference check and protected document access |
Document preparation
- Runtime component
- Import Worker with Extraction, Chunking and Embedding Adapter
Authorisation check
- Runtime component
- Access module in search, context formation and output
Search and Retrieval
- Runtime component
- Full text and vector search; merge hits
Model integration
- Runtime component
- Bounded model adapter within the answer service
Source attribution
- Runtime component
- Reference check and protected document access
Terms in this step
- Embedding
- Numerical representation of a text, with which content-related similar passages can be sought. It is not a substitute for rights checking or fact checking.
Try it yourself
Assign import, release, search, rights check, model call and reference check to the building blocks.
A hint for your attempt
A version becomes active only after complete processing. Retrieval and response formulation remain separately testable.
Compare with a possible solution
- Ingestion
- Check D-17, create DV-17 and passages with pipeline version and position anchors, then approve the complete version. Test: A deliberately faulty passage keeps DV-17 in `processing` or `failed`; expect 0 active partial versions. Set `ready` only when all expected passages resolve.
- Response path
- Checks permissions before search, model calls and output, retrieves passages, generates A-17 and verifies references before output. Test: Inject permission revocation and an unknown source ID; expect 0 protected text fragments and no release of an unverifiable answer.
Apply to your project
Which component in your system decides on release, access and response status?