You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(ai-service): full field set including line items #22
Extraction returns every field the customer listed – header fields and line items – each with status and its own evidence, so a clerk can review a real quote request completely.
Line items: description/product, quantity, unit, material, dimensions – each item field with its own status and evidence
Output schema is versioned (schema_version); the prompt is a versioned file; both are stored with every extraction run
Verifier normalises German number formats (decimal comma, thousands separators), units (mm, m, Stk., kg) and dates (DD.MM.YYYY, ISO); a calendar week ("KW 42") without an explicit date is at most uncertain
A value whose quote cannot be found in the cited segment is unverified – also for line items
TS side: contract types regenerated; persistence supports line items (item index) without breaking existing runs
Not part of this task
New input formats (separate issue), review UI for line items (separate issue)
Affected areas
services/ai/
contracts/ai-service.openapi.yaml
src/features/extraction/
Test plan
Criterion
Check
normalisers
pytest unit tests: numbers, units, dates, calendar weeks
verifier on line items
pytest unit tests
contract
contract test against OpenAPI
end to end
pytest with a recorded model response for a synthetic multi-item request
Security/Privacy affected?
Document content reaches the LLM – EU endpoint, synthetic data only, no content in logs.
Goal
Extraction returns every field the customer listed – header fields and line items – each with status and its own evidence, so a clerk can review a real quote request completely.
Acceptance criteria
schema_version); the prompt is a versioned file; both are stored with every extraction rununcertainunverified– also for line itemsNot part of this task
Affected areas
services/ai/contracts/ai-service.openapi.yamlsrc/features/extraction/Test plan
Security/Privacy affected?
Document content reaches the LLM – EU endpoint, synthetic data only, no content in logs.
Epic: #17 · Architecture:
docs/decisions/ADR-0001-pilot-architecture.md