Loading...
Loading...

An agentic, retrieval-augmented assistant over public-transit data: it answers GTFS specification questions with grounded, cited responses and queries a live STM Montréal feed, then exposes everything as an MCP server.
Timeline
2026-06 — 2026-06
Technologies
Overview
Cadence is an agentic RAG system over public-transit data. It answers questions about the GTFS specification with grounded, cited responses, queries a real STM Montréal feed (7.1M stop_times rows) for live schedules, and exposes every capability as an MCP server any LLM client can use.
RAG + Agent
Core
Grounded spec RAG + tool-using agent
MCP
Protocol
Tools exposed via Model Context Protocol
7.1M
Live data
STM stop_times rows queried in SQLite
k=3
Tuned
Retrieval depth chosen by precision/recall eval

Retrieval
The GTFS spec is chunked with a header-aware splitter that keeps each field definition intact and prefixes every chunk with its breadcrumb, so retrieved passages stay self-contained. Embeddings come from Azure OpenAI and are stored in Chroma; answers are grounded in retrieved context with an explicit "I don't know" guardrail.
Evaluation
An LLM-as-judge evaluation harness (faithfulness, answer relevancy, context precision, context sufficiency) was built before tuning, so every retrieval change is justified by numbers.
Measurement over intuition
Two cross-encoder rerankers were tested and rejected on evidence (precision fell from 0.57 to 0.36–0.44), and k was tuned on the precision/recall tradeoff — rigor that separates shipping from guessing.


Agentic + MCP
A tool-calling agent decides per question whether to consult the GTFS spec (RAG) or query live STM data, and fuses multi-tool answers. The same tools are exposed through an MCP server, so external clients like Claude Desktop become the agent.
Interoperability in action
The exact tools that power the in-app agent are callable from Claude Desktop via MCP — query Montréal departures or the GTFS spec directly inside a chat.

Stack & Delivery
A FastAPI backend serves the agent; a frontend provides a modern chat UI that surfaces which tools each answer used.
More like this
ai
Research platform for automatic 3D object segmentation and reconstruction from HoloLens 2 data. Combines YOLO, Mask R-CNN, and SAM achieving 80% precision for mixed reality applications.

ai
Document scanning and OCR web app that detects a page inside a noisy phone photo, corrects perspective, generates a clean scan-style result, and extracts text in French, English, or both.
ai
AI-powered web application for detecting pulmonary diseases from chest X-rays using deep learning. YOLO-based detection with 80% accuracy on the NIH dataset.