Skip to Content
DocsInternalsGraph Data

Graph Data

Utilities in lib/graphData.ts define the core types and a loader for the renderer.

Types

  • Entity: nodes with degree, frequency, and text-unit IDs
  • Relationship: edges with weight and description
  • Community: hierarchical clusters with parent/children and entity memberships
  • CommunityReport: model-generated summaries and ranks
  • GraphData: aggregate structure

GraphDataLoader

  • Fetches entities.json, relationships.json, communities.json, community_reports.json
  • Normalizes fields and maps types
  • Enriches community titles from community_reports

Use:

const loader = new GraphDataLoader('/api/data') const data = await loader.loadGraphData()
Last updated on