TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Graphiti – LLM-Powered Temporal Knowledge Graphs

142 pointsby roseway49 months ago
Hey HN! We&#x27;re Paul, Preston, and Daniel from Zep. We&#x27;ve just open-sourced Graphiti, a Python library for building temporal Knowledge Graphs using LLMs.<p>Graphiti helps you create and query graphs that evolve over time. Knowledge Graphs have been explored extensively for information retrieval. What makes Graphiti unique is its ability to build a knowledge graph while handling changing relationships and maintaining historical context.<p>At Zep, we build a memory layer for LLM applications. Developers use Zep to recall relevant user information from past conversations without including the entire chat history in a prompt. Accurate context is crucial for LLM applications. If an AI agent doesn&#x27;t remember that you&#x27;ve changed jobs or confuses the chronology of events, its responses can be jarring or irrelevant, or worse, inaccurate.<p>Before Graphiti, our approach to storing and retrieving user “memory” was, in effect, a specialized RAG pipeline. An LLM extracted “facts” from a user’s chat history. Semantic search, reranking, and other techniques then surfaced facts relevant to the current conversation back to a developer for inclusion in their prompt.<p>We attempted to reconcile how new information may change our understanding of existing facts:<p>Fact: “Kendra loves Adidas shoes”<p>User message: “I’m so angry! My favorite Adidas shoes fell apart! Puma’s are my new favorite shoes!”<p>Facts:<p>- “Kendra used to love Adidas shoes but now prefers Puma.”<p>- “Kendra’s Adidas shoes fell apart.”<p>Unfortunately, this approach became problematic. Reconciling facts from increasingly complex conversations challenged even frontier LLMs such as gpt-4o. We saw incomplete facts, poor recall, and hallucinations. Our RAG search also failed at times to capture the nuanced relationships between facts, leading to irrelevant or contradictory information being retrieved.<p>We tried fixing these issues with prompt optimization but saw diminishing returns on effort. We realized that a graph would help model a user’s complex world, potentially addressing these challenges.<p>We were intrigued by Microsoft’s GraphRAG, which expanded on RAG text chunking with a graph to better model a document corpus. However, it didn&#x27;t solve our core problem: GraphRAG is designed for static documents and doesn&#x27;t natively handle temporality.<p>So, we built Graphiti, which is designed from the ground up to handle constantly changing information, hybrid semantic and graph search, and scale:<p>- Temporal Awareness: Tracks changes in facts and relationships over time. Graph edges include temporal metadata to record relationship lifecycles.<p>- Episodic Processing: Ingests data as discrete episodes, maintaining data provenance and enabling incremental processing.<p>- Hybrid Search: Semantic and BM25 full-text search, with the ability to rerank results by distance from a central node.<p>- Scalable: Designed for large datasets, parallelizing LLM calls for batch processing while preserving event chronology.<p>- Varied Sources: Ingests both unstructured text and structured data.<p>Graphiti has significantly improved our ability to maintain accurate user context. It does a far better job of fact reconciliation over long, complex conversations. Node distance reranking, which places a user at the center of the graph, has also been a valuable tool. Quantitative data evaluation results may be a future ShowHN.<p>Work is ongoing, including:<p>1. Improving support for faster and cheaper small language models.<p>2. Exploring fine-tuning to improve accuracy and reduce latency.<p>3. Adding new querying capabilities, including search over neighborhood (sub-graph) summaries.<p>## Getting Started<p>Graphiti is open source and available on GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;getzep&#x2F;graphiti">https:&#x2F;&#x2F;github.com&#x2F;getzep&#x2F;graphiti</a>.<p>We&#x27;d love to hear your thoughts. Please also consider contributing!

6 comments

fudged719 months ago
Let’s say I want to ingest information from a series of interviews with multiple interviewees (multiple interviews per interviewee). It’s possible their opinions&#x2F;facts change between interviews; but also each interviewee is going to have different opinions&#x2F;facts.<p>Would it make most sense to capture this with multiple Graphiti graphs? Or would it be possible to do this in one graph?<p>At the end of the day the analysis would be finding insights across all interviewees and you want the cumulative knowledge…
评论 #41449689 未加载
评论 #41449465 未加载
spothedog19 months ago
Looks cool, would love support for RDF Graphs. The reason I prefer those is because the ontology is already well defined in a lot of cases which is 80% of the battle with Knowledge Graphs in my experience. Without a well defined Ontology I think LLM &lt;&gt; KG integration will not live up to its potential. LLMs have to know what nodes and edges really mean across diverse datasets
评论 #41449307 未加载
midgetjones9 months ago
Hi :) Cool project! Just FYI, there is already a fairly well-established project with that name.<p><a href="https:&#x2F;&#x2F;www.graphiti.dev" rel="nofollow">https:&#x2F;&#x2F;www.graphiti.dev</a>
mehh9 months ago
Looks very interesting, will check it out, also it would likely be much more adoptable if standards based.
jondwillis9 months ago
Any tips for someone who’d like to try implementing something like this in TypeScript?
评论 #41458544 未加载
tcdent9 months ago
Than you for open sourcing this!<p>You are definitely onto something here.
评论 #41448430 未加载