LLMs combine information non-deterministically, so a generated fact may not appear verbatim in any source. Chalef says that synthesis can erase the trail needed to check a fact, debug it, or decide what to delete. He illustrates the risk with a patient’s penicillin allergy, synthesized from an EHR, a lab report, and an intake chat: without source context, a doctor could mistake a patient’s claim for a verified clinical record.
Citation Needed: Provenance for LLM-Built Knowledge Graphs
Speaker
Daniel Chalef of Zep AI explains at an AI Engineer talk how to track provenance for facts synthesized into LLM-built knowledge graphs.
A single source ID works for deterministic pipelines, but LLMs can merge entities and derive facts from several sources. Chalef models source episodes, entities, and relationships in Graphiti so a fact can be traced through the graph to its supporting episodes. When facts change or entities merge, their lineage must change with them; Graphiti records the sources involved in an edge mutation.
Episodes can receive metadata tags at ingestion, such as an EHR tag, which derived entities and facts inherit. Agents can filter graph walks for facts from tagged sources. When a fact has multiple sources, the application must decide whether one verified source is enough or every source must be verified; the right rule depends on the situation.
Lineage can help remove context when source data must be deleted under retention policies or right-to-be-forgotten requests. In Chalef’s example, deleting the patient’s intake data leaves the allergy fact in place because two other episodes still support it, while a contact preference based only on the deleted source is removed. The rule is to delete a fact only when no remaining episodes support it.
Chalef says provenance should be part of the graph’s data structure, with source material kept verbatim and derived artifacts linked back to it. Graphiti’s episode-ingestion pipeline extracts entities, relationships, and candidate facts, then deduplicates entities and resolves conflicting facts. The pipeline uses LLMs for extraction, while applying techniques such as SimHash where traditional methods can make deduplication cheaper and more deterministic.
Takeaways
- Store links from derived facts to their source records as part of the data model.
- Preserve lineage as entities merge and facts are invalidated or updated.
- Make source-verification rules explicit for each use case and its risk.
- When deleting source data, remove derived facts only if no remaining sources support them.
- Use deterministic retrieval and deduplication methods where they can reduce LLM cost and variability.
Mentioned in this talk
Search inside this talk
What was claimed 11
- built
“Graphiti, Zep's open-source temporal graph framework”
0:29inStop Using RAG as MemoryYouTube Verified3 sources· Talk, Web· archived
- foundedDaniel Chalef founded
Zep“My team and I built Graphiti”
YouTube Verified5 sources· Talk, Web· archived
- integrates with
“Zep ... is built on Graphiti”
YouTube Unverified1 source· Talk
- feature
Zep: Enterprise agent memory infrastructure“Zep, our enterprise agent memory infrastructure”
YouTube Unverified1 source· Talk
- featureGraphiti: Open-source temporal graph framework
“Graphiti, the open-source temporal graph framework”
YouTube Unverified1 source· Talk
- featureGraphiti: Models source data and derived artifacts as linked graph relationships, enabling provenance tracing
“Provenance in a context store containing facts is a knowledge graph.”
YouTube Unverified1 source· Talk
- featureGraphiti: Tracks invalidation dates and source episodes when an edge is mutated
“an invalid date is added to the mutated edge”
YouTube Unverified1 source· Talk
- feature
Zep: Uses a separate data structure to trace provenance across many edges for relevancy weight changes“tracing that’s kind of outside the graph”
YouTube Unverified1 source· Talk
- featureGraphiti: Supports vector similarity search, full-text search, and graph relational operations such as BFS
“vector similarity search ... full-text search ... graph relational operations like BFS”
YouTube Unverified1 source· Talk
- featureGraphiti: Episode ingestion extracts entities, relationships, and candidate facts, then deduplicates entities and deconflicts facts
“There's a structured extraction of entities, the relationships between them, and candidate facts.”
YouTube Unverified1 source· Talk
- uses
“looking at things like entropy, SimHash, and other approaches to deduplication”
YouTube Unverified1 source· Talk










