Skip to main content
← All research

Comparing 7 Open-Source Models for RAG on City Data

March 28, 2026

CS
Colin Smillie

Founder, Developer, AI Researcher

We ran 7 open-source models through 10 building permit questions and scored them with our LLM-as-judge. Every model got identical retrieved context from our permits-only corpus so the only variable was the generation step. We wanted the best answer quality at the lowest cost for a system grounded in city government content.

Results

ModelRelevanceGroundedCitationLatencyCost
GPT-oss 120B(selected)0.941.000.835.8s$0.006
Kimi K2.50.880.960.966.3s$0.041
GLM-50.860.960.929.5s$0.031
DeepSeek v3.20.830.960.928.4s$0.035
Mixtral 8x22B0.820.920.713.9s$0.022
GLM-4.70.780.920.8617.9s$0.010
DeepSeek v3.10.750.880.754.0s$0.024

The winner

GPT-oss 120B came out on top for relevance (0.94), hit perfect groundedness (1.00), and was the cheapest option by a wide margin at $0.006 for all 10 benchmark prompts. That is about 7 times cheaper than the runner-up. Based on these results, we made it our default model.

Kimi K2.5 had the best citation quality (0.96) but cost 7 times more. DeepSeek v3.1, which we originally started with, finished last on judge relevance at 0.75. Upgrading from DeepSeek v3.1 to GPT-oss 120B improved relevance by 25%.

What the scores mean

Each answer was scored by an LLM judge on three dimensions. Relevance measures whether the answer directly addresses the question with specific, actionable information. Groundedness checks whether the claims are supported by the retrieved evidence rather than hallucinated. Citation quality evaluates whether the sources cited are relevant to the claims made.

GPT-oss 120B was the only model to score a perfect 1.00 on groundedness, meaning every claim in its answers was supported by the evidence. This matters for a system where trust is the priority. Users are making decisions about building permits based on these answers, so accuracy is more important than eloquence.

Limitations of this test

This comparison used only 10 questions, all about building permits, against a small subset of Toronto.ca content. A model that handles building permits well might struggle with property taxes, recycling rules, or housing questions. We plan to rerun this comparison with our expanded 100-question benchmark covering all 16 categories of Toronto.ca content.

The judge model was GPT-oss 120B itself, which creates a risk of self-evaluation bias. A model might score its own answers more favourably than a neutral judge would. We plan to test cross-model judging in future work.

Methodology

All 7 models were accessed through Fireworks.ai on the same OpenAI-compatible API. Chunks were retrieved once and reused for every model, so score differences come purely from the generation step. Each model received identical context and the same 10 questions in the same order. Cost was calculated from actual token usage at each model's published per-token price.

Why open-source models only

We committed early on to using only open-source models hosted on Canadian-friendly infrastructure. All inference runs through Fireworks.ai, which provides OpenAI-compatible APIs for open models. This keeps us independent from any single provider and ensures we can switch models as the field evolves.