Your Phone Can Do RAG — MiniRAG, Explained | Neelabh
The video explains MiniRAG from the University of Hong Kong, which builds a graph index so a 1.5 to 4 billion parameter model can do retrieval-augmented generation. It covers the accuracy gains, the ablation evidence and the higher error rate on hard questions.
Does retrieval-augmented generation need a big model? A paper from the University of Hong Kong says no, and the video, narrated by Liam on behalf of Bear, walks through why. The claim is that to answer questions about your own files, AI needs a better index rather than a bigger model. If that holds, private retrieval stops being a data-center problem and becomes a problem a phone can handle.
The assumption inside RAG
Retrieval-augmented generation works in three stages: build an index over your documents, retrieve what looks relevant, and generate the answer. Behind all three sits a large language model doing the understanding at every step. The video calls this a design assumption that nobody wrote down. Pulling the large model out and putting a small one in shows what depends on it. LightRAG falls from 56.9 percent accuracy to 35.4 percent. GraphRAG does not fall, it stops: every small model produced no usable output, and the paper's table just prints a slash. These systems were built on an assumption, and the assumption left the room.
How MiniRAG moves the work
MiniRAG keeps the same three stages but changes where the work happens. Indexing builds a graph instead of a pile of text. Retrieval walks that graph in two steps: first it maps the query onto entities, then it follows the structure to the answer. The model still writes the final sentence, but it has stopped doing the thinking.
Two kinds of node, two kinds of edge
The index is the trick. It has two kinds of node, the text chunks themselves and the named entities extracted from them. It has two kinds of edge, entity to entity and entity back to the chunk it came from, each carrying a written description of the relationship. Small models are poor summarizers but perfectly good entity extractors, so the index only asks them for the easy part. In the video, a real question from the paper asks which Italian restaurant two people will go to in order to celebrate a promotion. LightRAG on the same small model hunts for matching text and returns a pasta restaurant's name that is not listed. MiniRAG first guesses the answer type, a location, and then walks the graph to the location that connects both people and the promotion.
The results and the ablation
Across the small models tested, the pattern held. Phi-3.5 rose from 39.8 to 53.3, and GLM Edge, a 1.5 billion parameter model, rose from 35.7 to 52.5. The smallest model in the set gained the most, between 1.3 and 2.5 times the effectiveness of the lightweight systems it replaces.
A results table shows that it works, not why, so the authors took it apart. Removing the edge descriptions costs about three points of accuracy, and removing the chunk nodes costs four. Replacing the heterogeneous index with ordinary description-based indexing drops accuracy from 53.29 percent to 26.02 percent. Roughly half the system's performance lives in the index, which is the claim tested.
Where it bites
The video then covers what it says the paper underplays. On the harder multi-hop benchmark, MiniRAG answers far more correctly than LightRAG, 49.96 percent against 27.03 percent. But its error rate is also higher, 28.44 percent against 11.78 percent. It answers more questions and is confidently wrong more often, and the video says that trade is for anyone building on it to price.
Why it matters
A 3 billion parameter model runs on the phone in your pocket, so the documents never leave it. MiniRAG does this on roughly a quarter of the storage its nearest rival needs. That makes private retrieval over your own messages and notes possible without a round trip to a data center. The video's verdict is that the contribution is not a better model but a better place to put the work.
Key takeaways
- MiniRAG's claim is that RAG needs a better index, not a bigger model.
- With a small model, LightRAG falls from 56.9 to 35.4 percent and GraphRAG produces no usable output.
- The index is a graph with text-chunk nodes, entity nodes, and described edges.
- Small models are asked only to extract entities and write the final sentence.
- Phi-3.5 improved from 39.8 to 53.3 and GLM Edge from 35.7 to 52.5.
- Ordinary description-based indexing cuts accuracy from 53.29 to 26.02 percent.
- On multi-hop questions MiniRAG scores 49.96 against 27.03 percent, but its error rate is 28.44 against 11.78 percent.
- The approach offers on-device private retrieval at about a quarter of the storage.
Try it yourself
The video suggests asking Claude to help design a small experiment on your own data. Pick a document set you already have, write 10 questions whose answers need two hops, and decide which accuracy and error rate would make you believe the index is doing the work rather than the model. Then check the answer: it should separate accuracy from error rate, name a baseline to compare against, and say what result would prove the claim wrong. The paper is MiniRAG by Fan, Wang, Ren and Huang, and its code is on GitHub from HKUDS.
Chapters
- 0:00The question
- 0:14What MiniRAG claims
- 0:27How RAG works today
- 0:45What breaks on a small model
- 1:03The paper's three questions
- 1:18Rebuilding Figure 1
- 1:29The architecture
- 1:45Two nodes, two edges
- 2:04A real query, both systems
- 2:26The results
- 2:47Take the index out
- 3:06Where it bites
- 3:28Why it matters
- 3:45Verdict
- 4:04Your turn
Full transcript(auto-generated, with timestamps)
The question
[0:00]A paper out of the University of Hong Kong asks a blunt question. Does retrieval augmented generation actually need a big model? This is Liam in for bear. Many RAG's answer is no, and the ablation study is what makes that stick. To answer questions about your own
What MiniRAG claims
[0:15]Files, AI needs a better index, not a bigger model. That is many RAG's whole claim, and if it holds, private retrieval stops being a data center problem and starts being a phone problem. Here is how retrieval augmented
How RAG works today
[0:28]Generation works today. Three stages, build an index over your documents, retrieve what looks relevant, generate the answer. Now watch what sits behind all three stages, a large language model doing the understanding at every single step. That is the design assumption. Nobody ever wrote it down. So pull the big model out and drop a
What breaks on a small model
[0:46]Small one in. Light RAG falls from 56.9% to 35.4. Graph RAG does not fall, it stops. Every small model, no usable output at all. The paper's table just prints a slash. These systems do not degrade. They were built on an assumption, and the assumption left the room. Which gives the paper its three
The paper's three questions
[1:04]Questions. Does many RAG actually beat the alternatives? What is each piece of it contributing? And can it survive a question that needs more than one hop of reasoning? Three questions, three sections, and no hand waving between them. Before the architecture, the receipt.
Rebuilding Figure 1
[1:19]Here is the exact prompt that built the next shot, figure one of the paper, redrawn as a moving diagram rather than screenshotted. You will see the result in 1 second. And here it is, same three
The architecture
[1:30]Stages, but look where the work moved. Indexing builds a graph instead of a pile of text. Retrieval walks that graph in two steps. First, map the query on the entities, then follow the structure to the answer. The model still writes the final sentence. It just stopped doing the thinking.
Two nodes, two edges
[1:45]The index is the trick. Two kinds of node, the text chunks themselves and the named entities pulled out of them. Two kinds of edge, entity to entity and entity back to the chunk it came from. Each edge carrying a written description of the relationship. Small models are poor summarizers, but perfectly good entity extractors, so the index only ever asks them for the easy part. Watch
A real query, both systems
[2:04]It run on one real question from the paper. Which Italian restaurant are Wolfgang and Lie Hua going to to celebrate his promotion? Light RAG on the same small model hunts for text that matches and returns a pasta joint name not listed. Mini RAG guesses the answer type first, this is a location. Then it walks the graph to the location that connects both people and the promotion. Venedig Grandcaf. Across every small
The results
[2:26]Model they tested, same story. Phi-3.5, 39.8 up to 53.3. GLM Edge, a 1.5 billion parameter model, 35.7 up to 52.5. That last one matters most, the smallest model in the set gains the most between 1.3 and 2.5 times the effectiveness of the lightweight systems it replaces.
Take the index out
[2:47]But a results table only tells you that it works, not why, so they took it apart. Remove the edge descriptions, accuracy slips three points. Remove the chunk nodes, four points. Replace the heterogeneous index with ordinary description-based indexing and it collapses from 53 to 26. Half the system's performance lives in the index, that is the claim tested. Now the part
Where it bites
[3:06]The paper does not dwell on. On the harder multi-hop benchmark, Mini RAG nearly doubles Light RAG's accuracy, 50 compared to 27. But look at the error rate underneath. Light RAG is wrong 11.8% of the time, Mini RAG 28.4. It answers far more questions and it is confidently wrong far more often. If you are building on this, that trade is yours to price. So why care? Because a 3
Why it matters
[3:29]Billion parameter model runs on the phone in your pocket, which means the documents never leave it. And Mini RAG does this on roughly a quarter of the storage its nearest rival needs. Private retrieval over your own messages, your own notes, with nothing making a round trip to a data center. Let's recap with Claude. Mini RAG's real
Verdict
[3:47]Contribution is not a better model, it is a better place to put the work. The ablation is the evidence, pull the index out and half the performance goes with it. It buys you on-device private retrieval at quarter of the storage and it costs you a higher error rate on hard questions, which the paper never quite says out loud. Your turn. Paste this. I
Your turn
[4:04]Want to test whether mini RAG's core claim holds on my own data. Help me design a small experiment. One, pick a document set I already have. Two, define 10 questions where the answer needs two hops. Three, tell me what accuracy and what error rate would make me believe the index is doing the work, not the model. Then check the answer against three things. Does it separate accuracy from error rate? Does it name a baseline to compare against? And does it tell you what result would prove the claim wrong? If it skips that third one, push back. Mini RAG, the index does the thinking. Lay them in for bear.
More from Humanitarians AI Fellows
2:13Weekly Recap Scripting: Separating "Done" from "Next" with Claude
4:02Simbaremuteuro explains: Prefill vs. Decode and GPU Serving Bottlenecks
3:45Harshita Nimbal explains: Designing the Right Input for AI (Voice, Text, or Neither)
4:33How CDNs Deliver Content So Fast | Akshay
3:55Harshita Nimbal explains: Human-in-the-Loop AI Design Pattern
1:14