Versions in this module Expand all Collapse all v1 v1.1.0 Oct 12, 2026 v1.0.0 Sep 19, 2026 Changes in this version + func CreateCausalEdges(db *store.DB, insight *model.Insight) (int, error) + func CreateEntityEdges(db *store.DB, insight *model.Insight) (int, error) + func CreateSemanticEdges(db *store.DB, insight *model.Insight, embedCache EmbedCache) (int, error) + func CreateTemporalEdge(db *store.DB, insight *model.Insight) (int, error) + func ExtractEntities(text string) []string + func ExtractEntitiesIndexed(text string, knownEntities map[string]bool) []string + func HasCausalSignal(text string) bool + func ResolveEntities(content string, provided []string, mode EntityMode) []string + func ResolveEntitiesIndexed(content string, provided []string, mode EntityMode, ...) []string + func ValidEntityMode(mode EntityMode) bool + type BFSNode struct + Hop int + Insight *model.Insight + ViaEdge *model.Edge + func BFS(db *store.DB, startID string, opts BFSOptions) []BFSNode + type BFSOptions struct + EdgeFilter model.EdgeType + MaxDepth int + MaxNodes int + type CausalCandidate struct + Category string + CausalSignal string + Content string + Hop int + ID string + SuggestedSubType string + ViaEdge string + func FindCausalCandidates(db *store.DB, insight *model.Insight) []CausalCandidate + type EdgeStats struct + Causal int + Entity int + Semantic int + Temporal int + type EmbedCache map[string][]float64 + type Engine struct + func NewEngine(db *store.DB, embedCache EmbedCache) *Engine + func NewEngineWithEntityMode(db *store.DB, embedCache EmbedCache, entityMode EntityMode) *Engine + func NewEngineWithOptions(db *store.DB, embedCache EmbedCache, options EngineOptions) *Engine + func (e *Engine) OnInsightCreated(insight *model.Insight) (EdgeStats, error) + type EngineOptions struct + EntityMode EntityMode + TemporalMode TemporalMode + type EntityMode string + const EntityModeAuto + const EntityModeMerge + const EntityModeProvided + type NeighborNode struct + Category string + Content string + Hop int + ID string + ViaEdge string + func GetNeighborhood(db *store.DB, nodeID string, maxHops int, maxNodes int) []NeighborNode + type SemanticCandidate struct + AutoLinked bool + Category string + Content string + ID string + Similarity float64 + func FindSemanticCandidates(db *store.DB, insight *model.Insight, embedCache EmbedCache) []SemanticCandidate + type TemporalMode string + const TemporalDisabled + const TemporalEnabled