Web Article

How we built an internal data analytics agent

Source favicon

GitHub

November 7, 2026View Original
How we built an internal data analytics agent
GitHub's article outlines the creation and functionality of Qubot, an internal data analytics agent driven by GitHub Copilot, designed to empower all employees to interact with the company's data warehouse using plain language. The architecture of Qubot involves a user interface layer that integrates with platforms like Slack, VS Code, and the Copilot CLI, ensuring broad accessibility. A crucial component is its federated context layer, which organizes data by maturity tiers and is constantly enriched with new knowledge. This context is ingested and normalized by a dedicated context agent, proving essential for Qubot's reasoning capabilities. The system's query engine intelligently connects to both Kusto for exploratory, recent data questions and Trino for more complex historical analysis. A key learning from Qubot's development is that well-structured and curated context not only enhances the agent's accuracy but also significantly improves its speed, making it three times faster. To maintain reliability, GitHub implemented an offline evaluation framework that tests changes against curated prompts and ground-truth SQL, measuring accuracy, latency, and catching regressions before deployment. Qubot has seen substantial internal adoption, reducing the workload on the central data team and fostering greater data exploration among non-analysts.

Summarized using AI, subject to mistakes

Loading...