Expand description
Core types for the knowledge graph.
Structs§
- Graph
- A graph snapshot containing nodes (summaries) and edges.
- Graph
Edge - A directed, weighted edge between two nodes.
- Graph
Node - A node in the knowledge graph.
- Graph
Node Summary - Summary of a node for serialization (web viewer, API responses). Omits body and metadata fields for compact payloads.
- Graph
Stats - Aggregate statistics about the knowledge graph.
- Scored
Node - A node scored by relevance for recall ranking.
Functions§
- default_
importance - Default importance for new nodes.
- importance_
for_ type - Importance score by node type. Used when creating nodes without explicit importance.
- validate_
uuid - Validate a UUID v4 string (strict format:
xxxxxxxx-xxxx-4xxx-[89ab]xxx-xxxxxxxxxxxx).