Graph-Me-Maybe
Turn a folder of PDF, Word, PowerPoint and Excel files into one knowledge graph, and ask it questions.
Website · Live demo · Benchmarks · Install · Usage · How it works · Configuration · Develop · Contribute
An invented company's 32 documents. Watch it as video · Try the live demo
Graph-Me-Maybe is a local-first app. It reads each document the way a person would — as rendered pages — works out what sits under what, links documents that cite or resemble each other, and stores all of it in a single Neo4j graph. A question is answered from that graph with its sources: the documents that match, and the documents linked to them.
Your documents, the graph and your keys stay on your machine. Only the model and embedding calls leave it, to the provider you choose.
✨ Features
- Every common format, one graph. PDF, DOCX, PPTX, XLSX and Hangul (HWP, HWPX), including files embedded inside other files (a workbook in a deck, a PDF in a memo).
- Structure read off the page. A vision-language model reads each rendered page and decides the outline — headings, sections, what a table or a figure belongs to — instead of trusting styles or font sizes.
- Documents linked to each other. A document that names another by number or title is linked to it; documents with similar content are linked too. Answers follow those links.
- Hybrid retrieval. Vector search and full-text search (BM25) run side by side in Neo4j and are fused with weighted reciprocal rank fusion. A question about nothing in the graph gets "no related documents", not a guess.
- Search on this machine. Passages are embedded by a small model run locally (a general one by default, or one for Korean), so searching needs no key and sends nothing out. OpenAI or Gemini embeddings remain a choice.
- Your cloud drives. Box Drive, Google Drive for desktop and OneDrive (with the SharePoint libraries it syncs) are browsed in the app as folders and built from; Box can also be signed in to directly. A file kept online only is given back to the cloud once read, so a large folder does not fill the disk.
- Workspaces. Graphs kept apart, each with its own documents and links, switched in seconds.
- A desktop app. One-line installers for macOS and Windows; the graph database (Neo4j) is installed and run by the app itself, with no Docker and no account.
- Open graph. Export to a
neo4j-adminimport bundle, a.dumpfor Neo4j Desktop or Aura, or upload straight to Aura — Neo4j's own GraphRAG retrievers work on it with no code from here. - CLI, Python API and HTTP API over the same pipeline and the same graph.
📦 Install the app
Paste one line into a terminal. It installs the app and what it needs (Python, the web app, the document viewer, a browser to draw pages with, Neo4j and Java), then opens the app. Run it again to update.
macOS and Linux
curl -fsSL https://raw.githubusercontent.com/ToBeSuperior/Graph-Me-Maybe/main/install.sh | sh
Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/ToBeSuperior/Graph-Me-Maybe/main/install.ps1 | iex"
Then open Graph-Me-Maybe from Applications (macOS) or the Start menu (Windows), and put your model key in Manage › Keys and model. Try it with Try sample documents on the Ask tab.
🚀 Usage
The app
Drop a folder of documents on the Ask tab (or use the sample documents), wait for it to be read, and ask a question. A question begins a conversation kept on this computer, and a follow-up is asked after the turns before it. The answer cites its documents and marks each statement the passages bear out ✓ or not ⚠; files dropped on the box, or a found document's Ask only this, narrow the conversation to them. Right-click a file in Finder or Explorer and choose Ask Graph-Me-Maybe to ask about it in a small window kept above the others (turned on in Manage › Keys and model › Advanced settings). The documents found are shown as folders by how they were reached — found by the question, linked to those, linked to those in turn — with the matching passage highlighted on the rendered page. Manage holds the document list, the map of links, each document's outline, the cloud drives, export, keys and model, and the danger zone; the last build's result (how many went in, and why each failure failed) stays in its side menu. The workspace open is named in the top bar, where another is opened or made. A tour of every screen is in docs/user-guide.md.
Command line
The CLI uses the same graph as the app.
graphme build-graph ./docs # read a folder, put it in the graph, link and embed it
graphme ask "What pressure does the leak test use?"
graphme export-corpus ./out --dump # one .dump file for Neo4j Desktop or Aura
graphme doctor # what is ready and what is not, each with its fix (--json)
graphme mcp install --client cursor # add it to claude-code, claude-desktop or cursor
graphme --help # every command
Python
import graphme
doc = graphme.read("report.pptx") # one document -> ExtractedDocument (no Neo4j needed)
with graphme.GraphMe() as g: # settings from .env / the environment
g.add("docs/") # a folder or one file -> BuildReport
g.embed() # cut passages and embed them for search
for hit in g.search("leak test pressure"):
print(graphme.shown_name(hit.file), hit.score)
print(g.ask("What pressure does the leak test use?").text)
g.export("out/") # neo4j-admin import bundle (dump=True for a .dump)
The public API is exactly the names in graphme.__all__. More in examples/.
HTTP API
graphme serve # http://127.0.0.1:8765 — the API, its docs at /docs, the web app
curl -s -X POST http://127.0.0.1:8765/v1/ask -H 'content-type: application/json' \
-d '{"question": "What pressure does the leak test use?"}'
Long work (reading, embedding, exporting) runs as jobs you poll at GET /v1/jobs/{id}; every error
body is {"detail": "..."}. Without GRAPHME_API_KEY the server answers this machine only. The
full contract is at /docs and in src/graphme/server/models.py.
🧠 How it works
files ──▶ extract ──▶ render pages ──▶ bind visuals ──▶ VLM: figures, paragraphs, outline
│
answer ◀── walk links (2-3 hops) ◀── hybrid search ◀── passages ◀── one Neo4j graph
(vector + BM25, (documents, outlines,
weighted RRF) citations, similarity)
- Extract. Text, tables and pictures come straight from the file. The file owns the graph: what the model sees later can add evidence, never invent nodes.
- Render and bind. Each page is drawn (Office files in a browser, PDFs rasterised) and every unit is placed on it, so a table or a picture has an exact crop.
- Read the page. A vision-language model is asked, page by page, which units form one figure, which pieces form one paragraph, and what reads under what. Long documents carry their outline from page to page.
- Link. A document that names another is linked to it; documents with similar passages are linked too.
- Retrieve. The outline is cut into passages and embedded. A question runs vector and full-text search in Neo4j, fuses them, keeps only passages with real evidence, then walks the links to bring the connected documents along — see docs/retrieval.md.
📄 Supported formats
| Format | Read | Drawn by | Notes |
|---|---|---|---|
| text, tables, images, attachments, scanned pages | PyMuPDF; scanned pages read by the page-reading model | text read off a scan is marked as the model's reading | |
| DOCX | paragraphs, tables, pictures, embedded files | browser viewer (WASM) | headers, footers and comments are not extracted |
| PPTX | slides, shapes, tables, charts, pictures, embedded files | browser viewer (WASM) | slides keep their order |
| XLSX | sheets, tables, charts, pictures, formulas, embedded files | browser viewer (WASM) | formulas are linked, not recalculated |
| HWP, HWPX | what the page shows, read as a PDF | rhwp (WASM) in the browser, printed to PDF | text rhwp leaves undrawn is read from the file and set on pages after the print, without its place on the page |
⚙️ Configuration
Settings come from defaults, then .env, then a YAML file named by GRAPHME_CONFIG (never secrets),
then the environment. The installed app keeps its .env in its own folder; the app's
Manage › Keys and model page writes it for you. Every setting is listed with comments in
.env.example.
| Setting | What it is |
|---|---|
GRAPHME_PROVIDER |
who reads documents and answers: openai (default), anthropic or gemini |
OPENAI_API_KEY / ANTHROPIC_API_KEY / GEMINI_API_KEY |
that provider's key |
GRAPHME_EMBEDDING_PROVIDER |
who embeds passages for search: general (default) or korean, run on this machine with no key; or openai / gemini with that provider's key |
GRAPHME_NEO4J_URI (+ GRAPHME_NEO4J_PASSWORD) |
use a Neo4j you run yourself (Desktop, a server, Aura) instead of the app's own |
GRAPHME_HOME |
the app's folder (settings, graph, viewer) |
GRAPHME_RETRIEVAL_DOCUMENTS |
how many documents a question finds when it does not say (5; GRAPHME_RETRIEVAL_TOP_K is its old name) |
GRAPHME_HIERARCHY_READINGS |
how many times each page is read (more readings, steadier outlines, more cost) |
GRAPHME_CHECK_ANSWERS |
check each statement of an answer against the passages found and mark it (true, default) |
GRAPHME_LINK_DISCOUNT |
how much a linked document's passage counts per hop when it competes with the documents found (0.85) |
GRAPHME_NEO4J_HEAP / GRAPHME_NEO4J_PAGECACHE |
memory of the app's Neo4j, for large graphs |
GRAPHME_API_KEY |
required by graphme serve before it opens beyond this machine |
GRAPHME_BOX_CLIENT_ID / GRAPHME_BOX_CLIENT_SECRET |
your own Box app, to sign in to Box directly (Box Drive needs none) |
🛠 Develop from source
Requirements: Python 3.11+ and uv for everything Python; Node.js 24+
(npm 11+) for the web app; Google Chrome (or Playwright's Chromium) and, once, Rust with
wasm32-unknown-unknown plus wasm-pack to build the
document viewer. Running only the tests needs Python and uv alone.
git clone https://github.com/ToBeSuperior/Graph-Me-Maybe.git
cd Graph-Me-Maybe
uv sync --extra dev # Python 3.11 and the dependencies
(cd frontend && npm ci && npm run build) # the web app
cp .env.example .env # your settings (never copy another machine's)
src/graphme/adapters/rendering/viewer/setup.sh # the document viewer, once (~1-2 min)
Put your provider's key in .env (see Configuration). To use it only as a
library, pip install graph-me-maybe installs the CLI and the Python API ([server] adds
graphme serve, [app] the app). The viewer that draws Office files, a Chromium and Neo4j
are fetched on first use, or ahead with graphme setup. See docs/library.md.
Run the app with the sample documents, or the bare server:
uv run graphme app --no-browser # http://127.0.0.1:8765, with "Try sample documents"
uv run graphme serve # the same server without the samples
(cd frontend && npm run dev) # http://127.0.0.1:5173, hot reload, /v1 proxied to 8765
The first start fetches Neo4j and Java into the app folder (about 210 MB) and starts them; with
GRAPHME_NEO4J_URI in .env it uses that Neo4j instead.
Checks — what CI runs, and what a pull request has to pass:
uv run ruff check src tests/public && uv run mypy
uv run pytest tests/public # no key, no Neo4j, no real document needed
cd frontend && npm run typecheck && npm test && npm run e2e && npm run build
🤝 Contributing
Contributions are welcome — bug reports, fixes, new format support, documentation. Start with CONTRIBUTING.md: it walks through the setup, the layout of the code, how tests are written here (invented data only, a failing test first), and how a pull request is reviewed. Please also read the Code of Conduct; security issues go to SECURITY.md, not to public issues.
⚠️ Known limitations
- OpenAI is the only provider checked against live calls; the Anthropic and Gemini paths are covered by recorded-response tests only.
- Office files are drawn by a browser-based viewer, so DOCX pagination and PPTX effects are close to, not pixel-identical with, Word and PowerPoint.
- Formulas are linked, not recalculated; Excel's calculation engine is not replaced.
- The outline is read page by page by a model; a page the model gives no usable answer for stays
flat and is reported as
hierarchy_page_unread. - Mixed-column layouts and borderless tables in PDFs are read on a best-effort basis.
- The
.dumpexport is checked by loading it into an empty Neo4j 5.26; Aura upload has not been checked end to end. - Giving a cloud file back after it is read works on macOS (Box Drive, Google Drive, OneDrive) and, on Windows, for OneDrive only; OneDrive/SharePoint has been checked with invented folders only.
🔒 Security and data
- Never commit
.env, real documents, API keys or OAuth files. - Open
graphme servebeyond this machine only withGRAPHME_API_KEYset; without one it stays on 127.0.0.1. - Check your model provider's data terms before sending confidential documents to it -- and the embedding provider's, if you choose OpenAI or Gemini for search (the default runs on this machine).
- Generated captions are kept apart from what the file says and are never used as a citation.
📜 License
PolyForm Noncommercial 1.0.0: free for personal study, research, education, non-profit organisations and public institutions to use, change and share; not for commercial use or use in a company's business. The bundled document viewer is MIT-licensed; Neo4j and Java are fetched from their publishers under their own licenses — see THIRD_PARTY_NOTICES.md.
Metadata
Release files for graph-me-maybe 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| graph_me_maybe-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for graph_me_maybe-0.2.5-py3-none-any.whl |
Release files / graph_me_maybe-0.2.5-py3-none-any.whl
| Download URL | graph_me_maybe-0.2.5-py3-none-any.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e7738ac9f476da671beab1d25863c6d3f737659e6dcb55e1644bb6814fc0c059
|
|
BLAKE2b-256 checksum How to use checksums |
d4bdc048a54ae21b04e2520acc58fb2647b779164ee562f17946dc9452050f3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for graph-me-maybe 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for graph_me_maybe-0.2.5-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.