SimpleQA with Gemma 4 12B: from 2% to 45% right with one Wikipedia search
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.
SimpleQA: answered right
Gemma 4 12B on a MacBook Pro, 300 random SimpleQA questions
Same model, same questions, same grader. The only change: 5 Wikipedia paragraphs before the question.
Make a small model know more, in one call
WikiVectors is English Wikipedia, split into paragraphs and searchable by meaning, updated within the hour of each edit. Ask a plain-English question, get the 5 best paragraphs with their link and revision, and put them in your prompt. Works with any model, local or hosted.
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?
| Correct | Wrong | Not attempted | Right when it answered | |
|---|---|---|---|---|
| Gemma 4 12B alone | 6 (2%) | 151 | 143 | 4% |
| Gemma 4 12B + WikiVectors | 135 (45%) | 21 | 144 | 87% |
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:
| Question | Gemma alone | With 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:
- The answer wasn't in the 5 paragraphs (most misses). The exact answer text was in the paragraphs for at least 141 of the 300 questions; the model got 113 of those right. SimpleQA asks about very small details: one episode of a TV show, one line in a long article. Five paragraphs from all of Wikipedia is a small window. TV shows (2 of 19) and video games (1 of 11) were the weakest topics; politics (37 of 59) and history (11 of 16) the strongest.
- When the paragraphs didn't have it, the model said so. 144 answers were "the text doesn't say". That is the right thing to do. Alone, the model guessed instead, and was almost always wrong.
- Sometimes it trusted the paragraphs too much. On 4 questions Gemma was right alone and wrong or silent with the paragraphs, because the paragraphs it got were about something nearby (a list of Big East seasons, not Frank Beamer).
- Sometimes Wikipedia and the quiz disagree. The quiz says the Mediterranean is 5,109 m deep at its deepest; today's Wikipedia article says 5,267 m. Gemma gave Wikipedia's number and was graded wrong.
How fair is this test?
- We didn't pick the questions. 300 drawn at random from all 4,326 (Python
random.Random(42)), before any model ran. - Same model, same settings, both ways: Gemma 4 12B in Ollama on a MacBook Pro, temperature 0, thinking off. Alone, the model got the bare question, as SimpleQA sends it.
- SimpleQA's own grading rules, word for word. Claude graded all 600 answers using OpenAI's grader prompt. The answers were shuffled and unlabeled, so the grader could not tell which run an answer came from. We checked a random set of grades by hand.
- SimpleQA leans on Wikipedia. 240 of the 300 questions list a Wikipedia page as a source. That is why Wikipedia is a fair fix for it, and also why this is a test of facts that are on Wikipedia, not of every kind of question.
- One model, one run. A bigger model knows more on its own, so its jump would be smaller.
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.
More guides
- Web search for LLMs is expensive: Exa on OpenRouter vs WikiVectors, tested on 105 questionsWeb search costs about $7 per 1,000 questions on OpenRouter; WikiVectors $2. Same model, 105 questions: a tie on everyday facts and this year's news, web search ahead on very rare ones. WikiVectors first, web search as fallback: 103 of 105 right, 43% cheaper.
- LLM knowledge cutoff: why your AI doesn't know 2026, and how to fix itWhat a knowledge cutoff is, the real cutoffs of gpt-oss, Gemma 4 and DeepSeek, and a 15-line fix: four models went from 0 to 15 of 15 on this year's news with one Wikipedia search.
- LM Studio and Wikipedia: give your local model this year's news with MCPConnect WikiVectors to LM Studio as an MCP server so a local model answers current events from today's Wikipedia. Gemma 4 12B went from 0 to 8 of 8. Setup, system prompt, real answers and a video of a real run.