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.
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.