Skip to main content

Module knowledge_graph

Module knowledge_graph 

Source
Expand description

Knowledge graph for entity-relationship-based memory. In-memory knowledge graph for entity-relationship storage.

Tracks entities (people, concepts, tools, files), relationships between them, and facts with temporal metadata. Supports querying by entity, relationship type, and neighborhood traversal.

§Main types

  • Entity — A node in the knowledge graph.
  • Relationship — A directed edge between two entities.
  • KnowledgeGraph — The graph container with CRUD, traversal, and persistence.
  • GraphSummary — Aggregate statistics about the graph.

Structs§

Entity
A node in the knowledge graph.
GraphSummary
Aggregate statistics about the knowledge graph.
KnowledgeGraph
In-memory knowledge graph with indexed lookups and graph traversal.
Relationship
A directed edge between two entities.

Enums§

EntityType
Classification of entity types.
RelationType
Classification of relationship types.