Skip to content

Pipeline B (Template-Driven Extraction) - Implementation Tracker #636

Description

@abhishek-8081

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions