โ† Passion Projects

Phillies Prospect Pulse

A Self-Updating Farm System, With a Model That Shows Its Work

Started as a player database. Became three things stacked on top of each other: an automated data pipeline, a weighted ranking model that reports its own confidence, and a conversational assistant that reasoned over the live result instead of just displaying it.

Project objective

Public prospect rankings mostly show a single number with no visible reasoning behind it. The goal here was a rank that explained itself โ€” which inputs moved it, how confident the system actually was given the data it had that week, and a chat assistant that could answer a real follow-up question against the live database rather than a canned FAQ.

The automated pipeline

Scheduled GitHub Actions workflows kept the data live without manual upkeep: a daily injury-status update, a periodic prospect-data refresh pulling news, stats, and promotions, and a recurring quality check specifically on the Genie assistant's own answers. Supporting scripts reconciled roster assignments and audited the ranking, UI, and Genie outputs for drift between runs.

A ranking model that reports its own confidence

Eleven weighted components fed a single 0โ€“100 score, re-normalized automatically whenever an input was missing rather than silently treating a gap as a zero:

Scouting ยท 25%Performance ยท 22%Sentiment ยท 12%Age / level ยท 9%Development ยท 8%Movement ยท 8%Risk ยท 6%Defense ยท 4%Pitch quality ยท 4%History ยท 1%Consensus ยท 1%

Each evaluation also produced a confidence label โ€” high, moderate, or low โ€” computed from how much of the core and optional input set actually was available for that player, with an explicit limitations list attached whenever something was missing (for example, "defensive-quality input unavailable") instead of hiding the gap behind a clean-looking number.

A backtest that reports honestly when it has nothing to report

A backtest harness measured two different things and was careful not to conflate them: Spearman rank correlation and mean-absolute-rank-change against the prior snapshot (stability โ€” does the model thrash week to week), and the same statistics against optional external public rankings (validation โ€” does it agree with other evaluators). When the external-rankings source was empty, the report said so explicitly โ€” "no validation sample" โ€” rather than fabricating a correlation number from nothing.

Prospect Genie โ€” routed, not a single prompt

The chat assistant routed each question to one of six specialized response modes based on what was actually being asked, rather than handling every question with one undifferentiated prompt:

  • Predictive front office โ€” Forward-looking organizational questions โ€” e.g. where the farm system is trending into a future season.
  • Development dossier โ€” A specific player's skill trajectory and current development focus.
  • Front office decision โ€” Roster, promotion, and value-tradeoff questions framed the way a front office would ask them.
  • Simulation โ€” Hypothetical "what if" scenarios run against the live rankings.
  • Organization โ€” Broad organizational questions not tied to a specific player.
  • Core โ€” Everything else โ€” the default conversational fallback.

What this is

A fan project tracking public prospect information for one MLB farm system โ€” not an official team tool, and not a claim to a validated sabermetric model. The component weights are the author's own judgment about what should matter and by how much, not a trained or peer-reviewed formula. The value is the architecture: a model that shows its reasoning and degrades honestly, a pipeline that updates itself, and an assistant that answers from the real data instead of a script.