{
 "schema_version": 1,
 "generated": "2026-11-01",
 "id": "getzep-graphiti--build-a-private-knowledge-graph-with-graphiti-and-ollama",
 "repo": "getzep/graphiti",
 "repo_url": "https://github.com/getzep/graphiti",
 "repo_slug": "getzep-graphiti",
 "title": "Build a private knowledge graph with local models",
 "page_title": "How to build a private knowledge graph with local models with Graphiti",
 "summary": "Run extraction and embeddings through Ollama's OpenAI-compatible endpoint so no data leaves your machine.",
 "who": "A privacy-minded developer who cannot send documents to a hosted model.",
 "problem": "The default setup sends everything to OpenAI.",
 "outcome": "Graphiti running against local deepseek-r1:7b and nomic-embed-text models via OpenAIGenericClient.",
 "steps": [
  "Pull the models with `ollama pull deepseek-r1:7b` and `ollama pull nomic-embed-text`",
  "Make sure Ollama is running with `ollama serve`",
  "Configure OpenAIGenericClient with base_url http://localhost:11434/v1 and an OpenAIEmbedder with embedding_dim 768, as in the README",
  "Set structured_output_mode to json_object if your local model does not honor json_schema"
 ],
 "agent_prompt": "Using getzep/graphiti with a local Ollama server, configure OpenAIGenericClient and OpenAIEmbedder as the README shows, ingest <my notes folder>, and report how many entities were extracted and any extraction failures.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Advanced",
 "time": "2 hours",
 "basis": "readme",
 "caveat": "Very small local models often emit JSON that does not match the schema; prefer the most capable model you can run.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10 or higher; install with `pip install graphiti-core`",
  "A graph database: Neo4j 5.26, FalkorDB 1.1.2, Amazon Neptune, or Kuzu (deprecated)",
  "An OpenAI API key by default, or another provider such as Anthropic, Gemini, Groq or a local Ollama server"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/getzep-graphiti/build-a-private-knowledge-graph-with-graphiti-and-ollama/",
 "md": "https://dedupedai.com/use-cases/getzep-graphiti/build-a-private-knowledge-graph-with-graphiti-and-ollama/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/getzep-graphiti--build-a-private-knowledge-graph-with-graphiti-and-ollama.json",
 "api_version": "v1"
}
