Adding Fact Triplets
Manually specify fact/node triplets to add structured relationships to your graph
Overview
You can add manually specified fact/node triplets to the graph. You need only specify the fact, the target node name, and the source node name. Zep will then create a new corresponding edge and nodes, or use an existing edge/nodes if they exist and seem to represent the same nodes or edge you send as input. And if this new fact invalidates an existing fact, it will mark the existing fact as invalid and add the new fact triplet.
The add_fact_triple method returns a task_id that can be used to track the processing status of the operation. See the Check Data Ingestion Status recipe for how to poll task status.
Adding a Fact Triplet
Advanced Options
You can also specify the node summaries, edge temporal data, and UUIDs. See the associated SDK reference for complete details on all available parameters.