cd /news/artificial-intelligence/show-hn-visual-knowledge-graphs-usin… · home topics artificial-intelligence article
[ARTICLE · art-93442] src=github.com ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

Show HN: Visual knowledge graphs using Ollama and Embeddings

Morten Punnerud-Engelstad released mpe-lkg, a local knowledge graph tool that visualizes a language model's step-by-step reasoning using Ollama and embeddings, with blue edges for embedding similarity and green edges for exact evaluations via MPEqs. The tool, published on PyPI, runs entirely on the user's machine and supports modes like explore and settle, with RDF export. Benchmarking shows qwen3:4b-instruct-2507 answers 82.5% of arithmetic questions versus llama3.2:3b's 40%.

read1 min views1 publishedAug 12, 2026
Show HN: Visual knowledge graphs using Ollama and Embeddings
Image: source

Ask a local model a question, watch it reason step by step, and see the steps drawn as a graph. Blue edges are embedding similarity — association. Green is what an exact evaluator settled — sums and unit conversions, in fractions, via mpeqs. Everything runs on your machine.

pip install mpe-lkg
mpe-lkg

Open http://localhost:5100. It talks to a local model through Ollama and will tell you what is missing and the one command that fixes it. The model matters more than anything else here — measured, qwen3:4b-instruct-2507

answers 82.5% of the arithmetic battery against llama3.2:3b

's 40%:

ollama pull qwen3:4b-instruct-2507-q4_K_M

Ask harder questions with mode=explore

(each sub-question answered by its own run) or mode=settle

(explored twice, finished only when two independent runs agree), and take any run as RDF:

curl -sX POST localhost:5100/jobs -H 'content-type: application/json' \
     -d '{"query":"How many seconds are there in 23 weeks?","mode":"settle"}'
curl -s localhost:5100/jobs/<id>/rdf

|

Models and configurationEmbeddings from inside a modelHow it worksDevelopmentThe mpedb License 1.0 — the same licence as mpedb and MPEqs, byte for byte.

Free of charge for every person and every organization, with one exception: a group whose revenue or valuation exceeds five billion dollars owes a one-time fee of seven US cents per device. Not an OSI-approved licence.

Published to PyPI as mpe-lkg — Morten Punnerud-Engelstad Local Knowledge Graph.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @morten punnerud-engelstad 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-visual-knowl…] indexed:0 read:1min 2026-08-12 ·