How we evaluate AI models and LLMs for GitHub Copilot

Connor Adams, Klint Finley17 Jan 2025

Problem

A team that ships an LLM-based feature keeps getting new candidate models. A newer model is not automatically better for a specific product, and a wrong switch hurts users directly. Metrics also trade off: a quality gain can come with higher latency.

Example from the article: GitHub added Claude 3.5 Sonnet, Gemini 1.5 Pro, o1-preview and o1-mini to Copilot and tested each against its own offline suite before any production change.

Solution in brief

Run a large automated offline suite on every candidate: code-repair tasks with a pass/fail check, plus a question set graded by a reference LLM. Put a proxy between the product and the model API so a model can be swapped without client changes. Re-run the same suite daily on production models to catch degradation, and test major changes on internal users first.

Questions this case answers
  • How to compare candidate generative models for a product feature offline and decide whether to switch production to one of them
  • How to check free-form model answers at scale when only some questions have an objectively checkable answer
  • How to decide whether a newer LLM is better than the current one for a product feature before switching production traffic?
  • How to evaluate the quality of LLM chat answers at scale when manual review is too slow?

Tools and methods

  • Golden set of tasks — about 100 repositories and 1,000+ technical questions
  • LLM as a judge — a model with known good performance grades answers that cannot be checked automatically
  • CI pipeline — more than 4,000 offline tests run mostly in CI, built on GitHub Actions
  • Canary-style internal rollout — employees switch to the new model before release
  • Proxy server — redirects the feature to a different model API with no client change
  • Apache Kafka and Microsoft Azure — carry results to dashboards
Continue reading — it's free

Google or a one-time email code. No password.