Celloscope
A FastAPI service for Bengali/English transcription and structured lab-report extraction with deterministic offline replay.

- Status
- Live on Azure
- My role
- Built the service architecture, provider adapters, validation, deterministic fixtures, browser workspace, tests, and deployment.
Problem
A reviewer needs to exercise AI-backed file workflows without paid credentials, model downloads, invented medical fields, or hidden provider behavior.
Contributions
- Separated API, orchestration, domain, and provider adapters; an automated architecture test enforces the boundaries.
- Validated file signatures instead of trusting extensions and preserved raw evidence for every parsed laboratory value.
- Returned explicit no-speech, non-lab, unparsed, and unknown-fixture states rather than hallucinating a successful result.
Results
- streamed upload limit
- 25MiB
- swappable AI providers
- 2
- credentials for mock mode
- 0
One contract, replaceable providers
The application layer depends on provider-neutral ports. Offline replay adapters make review deterministic; OpenAI transcription and Azure layout OCR are selected only through validated configuration.
Preserve uncertainty
Numeric values stay numeric, while comparators, intervals, raw OCR tokens, raw lines, and unparsed rows remain explicit. Documents without credible lab evidence return `not_lab_report`.
Known limits
The live providers are contract-tested but not benchmarked on a representative private dataset. Synthetic report fixtures test failure modes, not clinical performance.