You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add concept-to-concept edges to the rolegraph, derived from [[wikilinks]] extracted by the Obsidian parser (#604). Currently the thesaurus is flat (synonym -> concept). Wikilinks enable a second layer: concept -> related concept.
pubenumEdgeType{Related,// from [[wikilinks]]ParentChild,// from folder hierarchy (subfolder = child)SeeAlso,// future: explicit "see also::" directive}pubstructConceptEdge{pubfrom:NormalizedTermValue,pubto:NormalizedTermValue,pubedge_type:EdgeType,pubweight:f64,// default 1.0, can be boosted by frequency}
Integration with RoleGraph
terraphim_rolegraph already supports node/edge relationships. Feed ConceptEdge data into the existing graph structure so that:
Search ranking: when searching for "context engineering", results mentioning related concepts ("knowledge graph", "ontology") get a relevance boost
Summary
Add concept-to-concept edges to the rolegraph, derived from
[[wikilinks]]extracted by the Obsidian parser (#604). Currently the thesaurus is flat (synonym -> concept). Wikilinks enable a second layer: concept -> related concept.Current State
Proposed State
Edge Types
Integration with RoleGraph
terraphim_rolegraphalready supports node/edge relationships. FeedConceptEdgedata into the existing graph structure so that:terraphim_agentASCII graph visualization shows concept neighborhoodsImplementation
MarkdownDirectivesParseResultto includeVec<ConceptEdge>(Obsidian format parser: aliases, wikilinks, and tags extraction #604 providesrelated_concepts)build_thesaurus_from_haystack(), after building the flat thesaurus, construct edges fromrelated_conceptsRoleGraph::new()alongside the thesaurusAffected Crates
terraphim_rolegraph(primary -- accept and store concept edges)terraphim_automata(pass edges from parser output)terraphim_types(ConceptEdge, EdgeType types)terraphim_service(use edges for search ranking boost)Dependencies
Estimated Effort
~1 day
Part of
Epic #603