Underdogi
An LLM pipeline that recognizes scanned PDF protocols of sports competitions and computes athlete ratings.
- Built an eval bench on a reference set of 43 pages and 423 bouts and used it to choose models for 30k pages of protocols. Accuracy on the reference set went from 53% to 96% at about $0.01 per page.
- Designed the recognition engine: the model extracts the bracket structure and deterministic code rebuilds the tournament logic; disputed pages go to a stronger model, and spending is capped.
- Added validation and deduplication of results, a data snapshot and automatic rollback on failure to the weekly run.
- Sped up the rating page from 10 seconds to 60 ms with precomputed snapshots.
Stack: Python, FastAPI, OpenAI API, Gemini API, PHP 8.4, Symfony 7.4, MySQL, Nuxt 3, Docker.