SimpleQA with Gemma 4 12B: from 2% to 45% right with one Wikipedia search

Updated 2026-11-28 · 8 min read

Small local models know less than big ones, and they guess. On SimpleQA, OpenAI's well-known fact quiz, Gemma 4 12B on a laptop got 6 of 300 questions right on its own. Then we gave it one WikiVectors search per question: the 5 best Wikipedia paragraphs, nothing else changed. It got 135 of 300 right, and its wrong answers fell from 151 to 21.

What is SimpleQA?

SimpleQA is a quiz of 4,326 short fact questions that OpenAI published in 2024 to measure how often a model gets facts right. Each question has one clear answer that does not change over time, like "Who hosted the 12th Streamy Awards?" The questions were picked because top models of the time often got them wrong. It comes with its own grading rules, so scores from different people mean the same thing. It is free to use (MIT license) and lives in OpenAI's simple-evals repo.

Each answer is graded one of three ways: correct, wrong, or not attempted (the model said it doesn't know). A model that says "I don't know" loses nothing but gains nothing. A model that guesses wrong is caught.

What were the results?

CorrectWrongNot attemptedRight when it answered
Gemma 4 12B alone6 (2%)1511434%
Gemma 4 12B + WikiVectors135 (45%)2114487%

Two things changed. The model knew far more: 22 times as many right answers. And it stopped making things up: alone, when it gave an answer, it was wrong 96% of the time. With the paragraphs, it was right 87% of the time.

SimpleQA's own score, the F-score (a mix of "how many right" and "how often right when it answers"), went from 2.6 to 59.2.

What did the answers look like?

Real answers from this run, shortened:

QuestionGemma aloneWith WikiVectors
Which YouTuber hosted the 12th Streamy Awards on December 4, 2022?The Sidemen (wrong)Airrack
Who was the first African American woman to serve as a Portland City Commissioner?Carmen Rubio (wrong)Jo Ann Hardesty
What were the original names of the first three Sea Org ships?Apollo, Freewinds, Enchanter (wrong)Avon River, Enchanter, HMS Royal Scotsman
What was Calytrix acutifolia first named by John Lindley in 1839?Calytrix acutifolia (wrong)Lhotskya acutifolia
When did Thomas Randolph write to the Earl of Leicester that he would not put his opinions on Mary on paper?September 21, 1584 (wrong)14 February 1566

Alone, the model answered every one of these with the same calm confidence as a real fact. That is the danger with small models: a wrong answer looks just like a right one.

How do I do this with my own model?

One search, then put the paragraphs in front of the question. These are the same two calls we made, with Gemma 4 12B in Ollama. Python, standard library only:

import json, os, urllib.request

def post(url, body, headers={}):
    req = urllib.request.Request(url, json.dumps(body).encode(),
                                 {"Content-Type": "application/json", **headers})
    return json.load(urllib.request.urlopen(req))

def ask(question):
    results = post("https://wikivectors.com/v1/search", {"query": question, "limit": 5},
                   {"Authorization": "Bearer " + os.environ["WIKIVECTORS_KEY"]})["results"]
    context = "\n\n".join(f"Page: {r['title']}\n{r['text']}" for r in results)
    prompt = f"Here are paragraphs from Wikipedia that may help.\n\n{context}\n\nQuestion: {question}"
    reply = post("http://localhost:11434/api/chat", {
        "model": "gemma4:12b", "stream": False, "think": False,
        "options": {"temperature": 0},
        "messages": [{"role": "user", "content": prompt}]})
    return reply["message"]["content"]

print(ask("Which YouTuber hosted the 12th Streamy Awards?"))

No system prompt, no special rules: we wanted to measure the paragraphs, not prompt tricks. In a real app, add a line telling the model to answer from the paragraphs and name its source. The knowledge cutoff guide has a good one. Using LM Studio instead? Connect it over MCP and the model searches on its own.

Where does it still miss?

45% is a big jump, not a perfect score. We looked at every miss:

How fair is this test?

Run it yourself: the script, the 300 questions, the paragraphs, every answer and every grade are in simpleqa-test.zip.

Questions people ask

Does Wikipedia make a small model smarter?

It doesn't change the model. It changes what the model can see. Most of what a small model gets wrong is missing facts, not bad reasoning. Hand it the right paragraph and a 12B model answers like one that knows.

Why not just use a bigger model?

A bigger model knows more, but it still has a cutoff date, still guesses on rare facts, and costs more to run. A search costs $0.002, and the 12B model runs free on a laptop.

Do 10 paragraphs beat 5?

A little. We ran the same 300 questions again with 10 paragraphs and graded both runs together, blind: 140 right with 10, 136 with 5, and 17 wrong instead of 20. (The 5-paragraph answers got 135 in the first grading and 136 in this one; a grader can differ by one or two.) The search costs the same (one search either way), but the prompt is twice as long (about 5,100 characters) and Gemma took longer to answer (about 4.4 seconds vs 2.8). For a small model, 5 is a good default; try 10 if accuracy matters more than speed.

Why 5 paragraphs, not whole pages?

Short prompts are fast and cheap, and small models do worse with long, noisy ones. Five paragraphs were about 2,600 characters here, well inside a small model's window.

Does it work with other models?

Yes. The search doesn't care which model reads it. In Grounding an LLM in Wikipedia we ran the same idea with DeepSeek, Gemma 4 31B and gpt-oss.

Wikipedia for your AI app, without the limits

WikiVectors searches all of English Wikipedia and returns short, cited paragraphs, fresh within the hour. 1,000 free searches a month, then $2 per 1,000.

Just your email, no card. We send your key right away.

More guides