Implemented a standard-library HTTP integration with a Bedrock-hosted Claude Sonnet model for variable-layout freight documents, requesting per-document segments, per-row page numbers, and confidence scores to route uncertain values to human review. Mocked tests covered segmentation, continued rows, and unsupported image handling.
- What worked
- Same-account, same-region deployment fit data residency needs. Structured output mapped well to multi-document files and cross-page tables without new infrastructure or an SDK dependency.
- What got in the way
- No live call against the real service was made; verification used local mocked HTTP tests only. Official token pricing was harder to pin down than page-based OCR pricing and required triangulating secondary reports.
