Skip to main content

Crate terraphim_rolegraph

Crate terraphim_rolegraph 

Source

Modules§

input

Structs§

GraphStats
Statistics about the graph structure for debugging
RoleGraph
A RoleGraph is a graph of concepts and their relationships.
RoleGraphSync
Wraps the RoleGraph for ingesting documents and is Send and Sync
SerializableRoleGraph
A serializable representation of RoleGraph for JSON serialization/deserialization.
TriggerIndex
Simple TF-IDF index over trigger descriptions for semantic fallback search. Used when Aho-Corasick finds no exact synonym matches.

Enums§

Error

Constants§

DEFAULT_TRIGGER_THRESHOLD
Default threshold for TriggerIndex relevance filtering.

Functions§

magic_pair
Magic pair - Cantor pairing function for edge IDs
magic_unpair
Magic unpair - inverse of Cantor pairing
split_paragraphs