Inspiration## Inspiration

Pinche Tulum started as an independent newsroom. Over time, we built an archive of approximately 50,000 articles. We wanted readers to find the right story even if they could only remember the topic. We also wanted to put that archive to work for Barakat, our digital presenter, so he could explain the news in original videos and make forecasts readers could check against real outcomes.

Those ideas came together in one app. Readers can search the archive, watch Barakat’s coverage, and open Pinche Market to see what the market expects, what Barakat called, and which articles informed his position. When a question resolves, they can come back and see whether he got it right.

What Pinche Tulum does

Pinche Tulum brings the newsroom to mobile, with Android and iOS as our target platforms. Readers can search published reporting, browse Barakat’s original videos, and explore popular Polymarket questions in Pinche Market.

The video library offers previews, search, and category filters. Pinche Market shows Polymarket’s probability alongside Barakat’s own call when one is available. Each forecast card is designed to show the question, the original position, the date it was published, and links to the reporting behind it. The original position stays fixed. As outcomes become known, the scoreboard will record which of Barakat’s calls were right and which were wrong.

Barakat’s editorial memory: 50,000 Pinche Tulum articles

Approximately 50,000 published articles form Barakat’s editorial memory. This archive gives our workflows a source of reporting to draw on when preparing a video or analyzing a market question. MemPalace is part of the local memory setup. For the Pinche Market prototype, we tested retrieval against the Pinche Tulum archive index and used SQLite to match relevant items to their published article URLs.

The forecasting workflow retrieves a small set of useful passages for each question and sends them to llama.cpp on our own server. Keeping the published URLs with the passages makes it possible to show readers exactly which articles informed the analysis.

Smart Search with hybrid Gemini AI

Smart Search lets readers describe a topic in their own words. It turns that query into search terms and returns links to existing Pinche Tulum articles.

On Android, our Flutter app connects through Kotlin to Firebase AI Logic and uses Firebase App Check. The integration is designed to run query interpretation with Gemini Nano on compatible devices and fall back to cloud inference when needed. Both paths support the same task: finding published reporting. End-to-end testing of on-device inference and cloud fallback is pending.

We build the mobile reader in Flutter and Dart. On iOS, we plan to use Apple Foundation Models through Firebase AI Logic for on-device Smart Search. Integration and testing on a compatible iPhone are pending.

Barakat’s editorial video pipeline

Barakat is Pinche Tulum’s digital presenter. The editorial video workflow starts with published reporting from our archive. We select stories, prepare scripts grounded in the source material, and use Kokoro text-to-speech to produce Barakat’s narration. The finished episodes go into the video library, where readers can discover them through previews, search, and category filters.

The same workflow prepares social editions for Instagram Reels, Facebook, X, and TikTok. We adapt the edit, captions, and format to each platform. A viewer who discovers Barakat through a short social video can find more episodes and explore the reporting behind them in the app.

Pinche Market: local AI, market data, and machine learning

Pinche Market uses the Polymarket Gamma API to import questions, probabilities, and results. We captured 500 markets and selected 100 popular questions for the initial collection. Python and SQLite record probability snapshots and outcomes, giving us a record of what the market expected at the time of a call.

Barakat’s forecasting workflow starts with the question and its exact resolution rules. It retrieves relevant reporting from the 50,000-article archive and analyzes those passages with llama.cpp on our server. When the evidence supports a call, the forecast record is designed to capture Barakat’s original position, publication date, and source links. Questions can stay pending when reporting is insufficient or the market is already under dispute. Firebase AI Logic powers the reader’s Smart Search, and Barakat’s forecast analysis runs on our own infrastructure.

We also built a NumPy machine-learning pipeline to learn from resolved examples as more results accumulate. The evaluation pipeline already records outcomes for the market baseline. Those results give us a benchmark for evaluating future models. Barakat’s public scoreboard will count his own published calls as they resolve. Model training is pending until enough resolved examples are available.

Blockchain Stamp: a verifiable record of the original call

The Stamp is designed to preserve a verifiable record of what Barakat said before the outcome was known. At publication, the system derives a SHA-256 fingerprint from the original call, its publication timestamp, and the links to supporting articles. The blockchain commitment is designed to let anyone check whether the displayed record matches the committed fingerprint.

The card will display the full hash as a link to the blockchain explorer. Readers will be able to open the proof and return to the same forecast. Once the market resolves, the result will appear alongside the original call so readers can compare what Barakat predicted with what actually happened.

We verified locally that changing the position, timestamp, or a supporting link changes the fingerprint. The first on-chain Stamp and independent verification through the explorer are pending.

Challenges and what we learned

Our first retrieval test for an NVIDIA market surfaced stock coverage and unrelated stories. A narrower search found reporting about Jensen Huang’s return. The exact market rule asked whether NVIDIA would officially announce a successor, and the saved market record showed a dispute. We left the forecast pending. That test helped us refine retrieval around the event that actually decides the market and preserve an explicit pending state.

The Stamp prototype gave us a concrete verification test. We confirmed that changing any of the key parts of a forecast changes its fingerprint. The next test is to verify an actual blockchain commitment through the same explorer link a reader would use.

What we built during the hackathon

The original Android news app and approximately 50,000-article editorial archive predate the hackathon. For this build, we added archive search, integrated the Android Firebase AI Logic path with App Check, expanded video discovery with previews and filters, and built the Pinche Market interface and forecasting pipeline.

We connected public market data to local article retrieval, tested forecast analysis with llama.cpp, recorded market baselines and resolved outcomes in SQLite, prepared the NumPy training pipeline, and prototyped the SHA-256 Stamp. Our demo targets Android and iOS and will show the features verified on each platform. The remaining milestones are verification of both Android inference paths, iOS hybrid integration and testing, model training, and the first on-chain Stamp.

What it does

How we built it

Challenges we ran into

Accomplishments that we're proud of

What we learned

What's next for Pinche Tulum

Built With

Share this project:

Updates