Skip to content

Instantly share code, notes, and snippets.

@Alchimick
Alchimick / graphiti-ollama-local.md
Created June 11, 2026 00:57
Fully local temporal knowledge graph: Graphiti + Ollama on a single RTX 5090 — working config and all the traps

Local knowledge graph on a single RTX 5090: Graphiti + Ollama without the cloud

Technical writeup. Audience: anyone tracking issue #868 who wants to reproduce a fully local, temporal knowledge-graph memory layer for an LLM chat stack — no OpenAI key, no hosted Graphiti, one GPU.


1. What was built and why

The goal was a persistent memory layer for a self-hosted LibreChat + Ollama setup: not "stuff the last N turns into the prompt," but a real temporal knowledge graph where facts become entities and relationships, survive across sessions, and can be retrieved by semantic search rather than by chunk overlap. Concretely: the assistant should be able to store "Yurii lives in Kyiv" once, and surface it in an unrelated conversation a week later. Graphiti (getzep/graphiti) does the entity/edge extraction and bi-temporal bookkeeping on top of Neo4j; we already ran Neo4j and Ollama, so the only new moving part was a small service wrapping graphiti-core.