For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
PlaygroundDiscordStatusDashboardSign Up >
DocumentationSDK ReferenceGraphiti
DocumentationSDK ReferenceGraphiti
      • Create Graph
      • Searching the Graph
      • Reading Data from the Graph
      • Deleting Data from the Graph
      • Cloning Graphs
      • Adding Fact Triplets
LogoLogo
PlaygroundDiscordStatusDashboardSign Up >
On this page
  • Reading Edges
  • Reading Nodes
  • Reading Episodes
Working with Graphs

Reading Data from the Graph

Was this page helpful?
Previous

Deleting Data from the Graph

Next
Built with

Zep provides APIs to read Edges, Nodes, and Episodes from the graph. These elements can be retrieved individually using their UUID, or as lists associated with a specific user_id or graph_id. The latter method returns all objects in that user’s or graph’s data.

Examples of each retrieval method are provided below.

Reading Edges

1from zep_cloud.client import Zep
2
3client = Zep(
4 api_key=API_KEY,
5)
6
7edge = client.graph.edge.get(edgeUuid)

Reading Nodes

1from zep_cloud.client import Zep
2
3client = Zep(
4 api_key=API_KEY,
5)
6
7node = client.graph.node.get_by_user(userUuid)

Reading Episodes

1from zep_cloud.client import Zep
2
3client = Zep(
4 api_key=API_KEY,
5)
6
7episode = client.graph.episode.get_by_graph_id(graph_uuid)