Qwen 4 35B on a home PC: 35 of 60 facts alone, 60 of 60 with one WikiVectors search
Qwen 4 35B runs on a gaming PC and knows a lot: on our 60-question test it got every easy and medium question right on its own. It fell apart on rare facts (5 of 15) and knew nothing about 2026 (0 of 15). With one WikiVectors search per question, 5 Wikipedia paragraphs in the prompt, the same model got 60 of 60, and made up nothing.
Qwen 4 35B: answered right, out of 60
Ollama on one PC (RTX 4070 12 GB, 64 GB RAM), temperature 0
Same model, same 60 questions, same grader. Only the text in front of the question changed.
Give a local model facts it doesn't have, 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 Ollama, LM Studio, or any model.
What did we test?
Qwen 4 35B-A3B is a mixture-of-experts model: 35 billion weights, but only about 3 billion work on each word, so it is fast on home hardware. We ran the 4-bit file (lmstudio-community's Q4_K_M GGUF, 36 GB) in Ollama 0.40 on one Windows PC with an RTX 4070 (12 GB) and 64 GB of RAM. About 9 GB sat on the graphics card and the rest in RAM. It wrote about 55 words a second.
We asked it 60 short fact questions in four levels, 15 each:
- Easy: "Who painted the Mona Lisa?"
- Medium: "Which astronomer discovered Phobos and Deimos, the moons of Mars?"
- Hard: rare facts from small Wikipedia articles, like "Who was the first Portuguese tennis player to reach the ATP top 100?"
- 2026 news: "Which country won the 2026 FIFA World Cup?"
Each question went in four ways: the model alone, the model alone with thinking on, the model with Wikipedia's own search (what LangChain's Wikipedia retriever does by default), and the model with one WikiVectors search.
What were the results?
| Easy | Medium | Hard | 2026 | All 60 | Wrong | Time | |
|---|---|---|---|---|---|---|---|
| Qwen 4 alone | 15 | 15 | 5 | 0 | 35 | 8 | 2.5 s |
| Alone, thinking on | 15 | 15 | 3 | 0 | 33 | 2 | 3.3 s |
| + Wikipedia's search | 13 | 10 | 4 | 15 | 42 | 3 | 9.8 s |
| + WikiVectors | 15 | 15 | 15 | 15 | 60 | 0 | 5.2 s |
Right answers per level, out of 15. "Wrong" counts answers that gave a wrong fact; the rest of the misses were "I don't know". Time is the middle (median) question: search plus answer, on this PC, searches sent from home over the internet.
Three things stand out:
- The model knows the famous stuff. Easy and medium were 30 of 30 on its own. A search adds nothing there, and it took nothing away.
- On rare facts it guesses. Alone, it gave a wrong answer to 8 of the 15 hard questions, in the same calm voice as its right ones. With WikiVectors it got all 15.
- It doesn't know 2026. Alone it said "I don't know" to all 15 news questions, which is honest. With either search it got all 15, because Wikipedia already has them.
Does thinking mode help with facts?
Not with getting them right. With thinking on, the model was more careful, not more knowing. On the 15 hard questions it went from 5 right and 8 wrong to 3 right and 2 wrong: it said "I don't know" 10 times instead of guessing. That is safer, but it lost two answers it knew (it talked itself out of "El Bierzo", which was right). Thinking can't find a fact that isn't in the weights. A search can.
What did the answers look like?
Real answers from this run, all from the hard level:
| Question | Qwen 4 alone | With WikiVectors |
|---|---|---|
| Who was the first Portuguese tennis player to reach the ATP top 100? | João Sousa, in 2011 (wrong) | Nuno Marques |
| Which region did Lloyd Quinan represent as an MSP from 1999 to 2003? | Cape Breton North, as an MLA (wrong: that's Canada) | West of Scotland |
| Which architect designed The Leys, the listed house in Elstree? | Barry Parker (wrong) | George Henry Walton |
| With which logician did Francisco Dória prove that chaos theory is undecidable? | Bruno Scarpellini (wrong) | Newton da Costa |
| In which 2010 film did actress Afiea Nusrat Barsha make her feature debut? | Hajuratir Bibidha (wrong) | Khoj: The Search |
| Who wrote the Channel 4 sitcom The Lady Is a Tramp? | I'm not sure. | Johnny Speight |
And 2026, where the model alone said "I don't know" every time: with WikiVectors it answered "Spain" (2026 World Cup), "The Seattle Seahawks won Super Bowl LX, defeating the New England Patriots 29–13", and "Rory McIlroy" (2026 Masters).
Why did Wikipedia's own search do worse?
Wikipedia's search matches words in titles and text. Send it a whole question and it often finds the wrong pages, or none: for 4 of the 60 questions it found nothing at all, so the model saw no context. For "Which chemical element has atomic number 74?" it found "List of chemical elements", but the part we sent stops before element 74; for "What is the longest river in Australia?" it found lists of tunnels and caves. LangChain's default then sends the first 4,000 characters of 3 whole pages, about 12,000 characters a question. The answer, when it's there, is often further down the page and gets cut off.
WikiVectors searches by meaning and sends the 5 best paragraphs, about 2,500 characters. On a local model that matters twice: the right fact was in the context for all 60 questions (Wikipedia's search: 45), and the model read a prompt 4 times shorter, so it answered in 3.5 s instead of 6.8 s.
How do I do this with Qwen 4 in Ollama?
One search, then put the paragraphs in front of the question. These are the calls we made. 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)) SYSTEM = ("Answer the question in as few words as possible, using only the context. " "If the context supports an answer, give it. " "Only if nothing in the context answers the question, answer: I don't know.") 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) reply = post("http://localhost:11434/api/chat", { "model": "qwen4:35b-a3b-q4_K_M", "stream": False, "think": False, "options": {"temperature": 0, "num_ctx": 8192}, "messages": [{"role": "system", "content": SYSTEM}, {"role": "user", "content": f"Context:\n{context}\n\nQuestion: {question}"}]}) return reply["message"]["content"] print(ask("Who was the first Portuguese tennis player to reach the ATP top 100?"))
Already have the model in LM Studio? You don't need to download it again for Ollama. Point a one-line Modelfile at the GGUF file and run ollama create qwen4:35b-a3b-q4_K_M (add -f Modelfile):
FROM C:/path/to/Qwen4-35B-A3B-Q4_K_M.gguf
Or stay in LM Studio and connect WikiVectors over MCP, so the model searches on its own.
How fair is this test?
- Same model and settings every time: Qwen 4 35B-A3B, Q4_K_M, temperature 0, thinking off except in the thinking run. The searches were done once and saved, so each way of asking saw exactly the same text every time.
- Graded by code, not by us. An answer is right if it contains an accepted answer ("bierzo", "nuno marques"), wrong if it gives something else, "don't know" if it says so. Two hedged answers alone ("I'm not confident enough to provide the exact town") count as wrong under that rule; call them "don't know" if you like, and alone is 35 right, 6 wrong.
- One grader bug, fixed before we wrote this. "đồng", Vietnam's currency, was first graded wrong in every run because the grader dropped the letter đ. We fixed it, added a test, and regraded all 240 answers.
- We wrote the questions. Easy, hard and 2026 are the same 45 as in our grounding test with four other models. The 15 medium ones were written for this test. Hard questions come from small Wikipedia articles, so this tests facts that are on Wikipedia, not every kind of question.
- One run, 60 questions. One or two answers either way is noise. A gap of 25 is not.
Questions people ask
Can Qwen 4 35B run on a 12 GB graphics card?
Yes, with enough RAM. The 4-bit file is 36 GB. Ollama put about 9 GB on our 12 GB card and the rest in system RAM (64 GB here), and it still wrote about 55 words a second, because only about 3 billion of its weights work on each word.
Does a Wikipedia search slow a local model down?
A little. The search took about 1.6 s from a home connection, and the longer prompt added about 1 s to the answer: 5.2 s a question in total instead of 2.5 s. Wikipedia's own search took 9.8 s, mostly because its 12,000-character prompts are slow for a local model to read.
Why not just turn thinking on?
Thinking helps with reasoning, not with missing facts. Here it cut wrong answers from 8 to 2, but right answers on hard questions fell from 5 to 3. With WikiVectors and thinking off, the model got all 15.
Does this work with other local models?
Yes. The search doesn't care which model reads it. Gemma 4 12B went from 2% to 45% on SimpleQA, and DeepSeek, Gemma 4 31B and gpt-oss all got 45 of 45 in our grounding test.
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
- LangChain Wikipedia retriever: the built-in one vs WikiVectors, tested on 45 questionsLangChain's WikipediaRetriever crashed on 18 of 45 questions with Wikipedia's 429 (shown as JSONDecodeError) until we set a User-Agent; then it found 34 of 45 in 5.7 s each. WikiVectorsRetriever: 45 of 45 in 0.57 s, with a fifth of the text. Code, fix and real output.
- Wikipedia MCP server for Claude, Cursor and VS Code (tested in Claude Code)Add Wikipedia to Claude Code, Claude Desktop, claude.ai, Cursor or VS Code with one line or one JSON file. A real Claude Code run went from "I don't know" to the right 2026 answer in 7 s. 8 questions vs Wikipedia's own search, speed, cost, no-key tries.
- Fact-check API: check a claim against Wikipedia in one call (31 claims tested)Send a claim to one API call and get True, False or no answer, with the Wikipedia paragraphs as proof. We tested 31 claims: 28 right, 3 no answer, 0 wrong. Code, real output, and what to do when it can't tell.