Automatic Comments in PDF Reports
Internal web application for a Chilean road safety company that generates automatic comments in PDF reports built from PowerBI.
AI Integration
The GPT-4o-mini model is used for automatic generation of contextual analysis and observations in road safety reports.
Data Pipeline
The pipeline extracts data from an external PowerBI API, structures it in CSV format, and feeds it into the LLM to generate comments.
Backend
Modular backend with FastAPI and Python designed to support client-specific business logic. Includes a programmatic PDF manipulation system using PyMuPDF that injects the generated text while preserving the original document fonts and layout.
User Interface
Built with React and TailwindCSS, it enables real-time upload, review, and regeneration of reports with a PDF preview showing the injected comments.