Tracker for implementing Pipeline B (template-driven extraction) on the
development-approach-b branch, following the architecture decided in discussion #609.
Approach B, in short
No standalone extraction step. The transcript (from text input #546 / voice input #547) is
stored as the source of truth. Each template holds its own field dictionary (field name →
type). At form-fill time, the stored transcript + the template's field dictionary go to the
LLM, which returns values field-by-field, which are then drawn into the PDF. The LLM runs
per form at fill time. No canonical incident schema, no incidents layer, no reporting layer
(those are Pipeline C, on the approach-c branch).
Context
Most of Pipeline B already exists as working, tested prototype code (per-field LLM loop,
PDF filling, template registry, sync + async fill endpoints). The work here is mainly
reshaping that prototype into the v1 API layering (routes → services → repositories) and
wiring it to the stored transcript, plus giving B its own contract.
Sub-issues
Tracker for implementing Pipeline B (template-driven extraction) on the
development-approach-b branch, following the architecture decided in discussion #609.
Approach B, in short
No standalone extraction step. The transcript (from text input #546 / voice input #547) is
stored as the source of truth. Each template holds its own field dictionary (field name →
type). At form-fill time, the stored transcript + the template's field dictionary go to the
LLM, which returns values field-by-field, which are then drawn into the PDF. The LLM runs
per form at fill time. No canonical incident schema, no incidents layer, no reporting layer
(those are Pipeline C, on the approach-c branch).
Context
Most of Pipeline B already exists as working, tested prototype code (per-field LLM loop,
PDF filling, template registry, sync + async fill endpoints). The work here is mainly
reshaping that prototype into the v1 API layering (routes → services → repositories) and
wiring it to the stored transcript, plus giving B its own contract.
Sub-issues