ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsQuick take2 min readDisconfirmAI Editorial

Neo4j Developer Advocate: An Embedded Graph Lifted a 4B Local Model from 8/36 to 36/36 on Structured Minecraft Questions

Martin O'Hanlon, a Developer Advocate at Neo4j, built Allay, a Minecraft helper that pairs a 4B parameter Qwen3 model running through Ollama with Relate, Neo4j's new embedded graph database. In a self-conducted evaluation of 36 structured questions covering recipes, ore heights, drops and routes, the model alone answered 8 correctly; with graph-backed read-only tools it answered 36 of 36. O'Hanlon acknowledges the test set was the same one used for tuning and that the result measures faithful retrieval rather than general knowledge.

2026-12-01 00:05 GMT+8

Martin O'Hanlon, a Developer Advocate at Neo4j, built a Minecraft helper called Allay for the Relate by Neo4j hackathon. The project pairs a 4B parameter Qwen3 model running locally through Ollama with Relate, an open-source embedded graph database Neo4j released alongside the hackathon. A small model makes mistakes on factual recall, so the agent does not rely on it for facts; instead, it calls six read-only tools that query the graph and return bounded results for the model to put into words.

The graph itself is built from the Minecraft server's own jar file in about one second, producing roughly 6,300 nodes covering recipes, mining and drop actions, biomes, mobs with spawn links, structures and ore placements. When a player types /allay what am I missing for an iron pickaxe?, the plugin sends a snapshot of the player's inventory, writes it to the graph as (Player)-[:HOLDS]->(Item) edges, and the agent traverses the recipe chain with those held items subtracted. The same route is one Cypher query from Iron Pickaxe back through recipes, item classes, ingredients, smelting and mining nodes.

O'Hanlon ran a simple evaluation: 36 structured questions asked of the same Qwen3 model twice, once with graph tools and once without. Correct answers were computed from the graph and scored automatically. The model alone got 8 of 36; with the graph it got 36 of 36. He is explicit about what this measures: the answers come from the same graph the agent reads, so it tests faithful retrieval, not whether the underlying data is right. He also notes the first run before any tuning scored 28 of 36, and that it is one run on one model with no held-out set.

Sign in / Sign up
ReadingResearchRadarInvestment framework

One architectural detail stands out for readers interested in agent reliability: Allay's /allay-explain command opens an in-game book showing the last five questions, answers and sources. The sources are built by code from what each tool returned, never by the model. A model that cites its own sources can fabricate them; this way it cannot. The graph path walked for each answer is shown beneath the source.

The pattern is narrow but concrete. For a domain where structured relationships exist and a small model lacks sufficient parametric knowledge, an embedded graph with bounded tool outputs can close the gap entirely. The limitation is equally specific: this works when the answer is already in the graph. It does not help with questions the graph cannot represent, and the evaluation's circularity (same graph for answers and scoring) means the 36/36 figure should be read as a retrieval-fidelity test, not a knowledge benchmark.

Sources

  • neo4j.comNeo4j Graph Intelligence Platform↗
Continue researching →