The Medallion Architecture, typically used for data lakes, has been adapted for an LLM-based news pipeline in Mexico City. The system processes data in three distinct layers: Bronze, Silver, and Gold. This structure allows for partial re-processing of data when prompts, validation rules, or geocoding services are updated, without needing to re-run the entire pipeline.
The Bronze layer stores raw search results from Tavily Search. The Silver layer processes these results, extracting event types, dates, and locations, while linking them to specific source URLs. The Gold layer performs geocoding, assigning coordinates and accuracy levels to the extracted events.
The pipeline maintains traceability across all layers using specific identifiers. Gold records link back to Silver via source_row_index, while Silver records trace back to Bronze using page_id, which is a SHA-256 hash of the source URL. This allows users to verify the origin of any geocoded event.
In a recent test run, the Gold layer processed 93 publications containing 163 mentions. Out of these, 41 mentions from 28 publications successfully passed the geocoding verification process. The system uses manifest files to ensure consistency by pinning input snapshots and checksums for each run.






