Skip to content
FlowScript templates

Evidence-grounded retrieval architecture

Trace permissions and document versions through retrieval and answer verification. Typed FlowScript for software architecture. Keywords: C4, container, system context, architecture.

Template previewFlowScript
Illustrative Evidence-grounded retrieval architectureC4 — container view · Architecture working groupResearcher[user]SYSTEM BOUNDARYEDGECOREDATARequest gateway[Container: Browser or edge client]EDGERetrieval coordinator[Container: Stateless service]COREPermission filter[Container: Background worker]COREEvidence assembler[Container: Durable worker]COREAnswer verifier[Container: Application service]CORESource permissions[Datastore: postgres]DATAVersioned evidence chunks[Datastore: object-store]DATAResearcher → Request gateway

What this template contains

Source
51 lines

Make it your own.

// Trace permissions and document versions through retrieval and answer verification.
// Synthetic worked example: all entities, schedules and measurements are illustrative.
// Every string below is EXAMPLE text from a fictional model: replace it.
// Replace assumptions and inputs before applying this model to actual work.

system platform {
  title: "Illustrative Evidence-grounded retrieval architecture"
  owner: "Architecture working group"
}

actor user {
  title: "Researcher"
  kind: "user"
  depends: [s0]
}

service s0 {
  title: "Request gateway"
  runtime: "Browser or edge client"
  tier: "edge"
}

service s1 {
  title: "Retrieval coordinator"
  runtime: "Stateless service"
  tier: "core"
  depends: [s0, s2]
}

service s2 {
  title: "Permission filter"
  runtime: "Background worker"
  tier: "core"
  depends: [d0]
}

service s3 {
  title: "Evidence assembler"
  runtime: "Durable worker"
  tier: "core"
  depends: [s1, d1]
}

service s4 {
  title: "Answer verifier"
  runtime: "Application service"
  tier: "core"
  depends: [s3]
}

datastore d0 {
  title: "Source permissions"
  kind: "postgres"
}

datastore d1 {
  title: "Versioned evidence chunks"
  kind: "object-store"
}

view architecture: c4_container(platform)