r/Rag • u/Similar-Can5214 • 5m ago
Showcase What I learned building a GraphRAG that reads documents as rendered pages (open source, benchmarks vs RAG-Anything, LightRAG, GraphRAG)
Disclosure: I built this, and it's open source (Apache-2.0).
At work, documents pile up from every department, each in its own formats and its own way of laying things out: specs in Word, test records in Excel, review decks in PowerPoint, scanned PDFs, and the mail that carries them. Most RAG pipelines flatten these into text, so the tables, pictures and charts are gone before retrieval starts. If you work with a lot of different people, you probably know the feeling. Here is what worked for me.
A 30-second demo (a spreadsheet, a slide and a contract, each answer's source highlighted on the page) is at the top of the README: https://github.com/ToBeSuperior/Graph-Me-Maybe
Read the page, not the text. Every format is rendered to page images first. A VLM reads the outline off each page: which heading holds which paragraph, which label belongs to which figure, which rows a table really has. Styles and font sizes are not trusted, because half the documents at work don't use them.
Make the outline the graph. Instead of extracting entities and relations from every chunk, the graph is each document's own hierarchy (sections and the units under them), plus links between documents that cite or resemble each other (a memo naming a spec, copies and versions of one file). That keeps indexing cheap and the graph small.
Retrieve graph chunks cut along the outline. Search is hybrid (vector + full-text, fused with weighted RRF) over chunks that follow the outline, and the answer gets each chunk's pictures where they stand in the text, so it can read a value off a chart. Every claim cites the page, slide, cell or paragraph, highlighted on the original.
Benchmarks. Same documents, same answering model (Claude Haiku 5.5) for every system, graded by Claude Opus 5.5, on MMLongBench-Doc and DocBench:
| system | MMLongBench-Doc | DocBench |
|---|---|---|
| Graph-Me-Maybe | 72.0% | 83.1% |
| RAG-Anything | 67.5% | 78.1% |
| LightRAG | 58.8% | 79.1% |
| Text RAG | 49.8% | 62.5% |
| HippoRAG 2 | 46.1% | 64.7% |
| Microsoft GraphRAG | 44.4% | 55.0% |
It is also the fastest graph-based system to index on both sets (1.2-1.9x faster than GraphRAG's fast mode, 17-21x faster than RAG-Anything) and keeps the smallest graph (1.2-1.8x less than the next, 5-7x less than RAG-Anything). Setup, cost, time and per-type scores: https://graphme.io/benchmarks/
It's a desktop app (macOS, Windows, Linux). The graph (its own Neo4j, no Docker), the search (a local embedding model) and your files stay on your machine; pages are read and answers written with an OpenAI, Anthropic or Gemini API key, or a Claude, ChatGPT or Gemini subscription you already have (advanced option). It also works as an MCP server for Claude Code and Cursor.
Repo: https://github.com/ToBeSuperior/Graph-Me-Maybe · live demo, no install: https://graphme.io/demo/en/
Happy to go into the outline pass, how tables split across pages are joined, or how pictures are placed in the answer's context.