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 ContentSimilarity(a, b string) float64 + func JaccardSimilarity(a, b string) float64 + func Tokenize(text string) map[string]bool + type DiffMatch struct + Content string + CosineSimilarity float64 + ID string + Similarity float64 + Suggestion DiffSuggestion + TokenSimilarity float64 + type DiffOptions struct + ExistingEmbed []EmbeddedItem + Limit int + NewEmbedding []float64 + type DiffResult struct + Matches []DiffMatch + Suggestion DiffSuggestion + func Diff(insights []*model.Insight, newContent string, opts DiffOptions) DiffResult + type DiffSuggestion string + const DiffAdd + const DiffConflict + const DiffDuplicate + const DiffUpdate + type EmbeddedItem struct + Embedding []float64 + ID string + type Intent string + const IntentEntity + const IntentGeneral + const IntentWhen + const IntentWhy + func DetectIntent(query string) Intent + func IntentFromString(s string) (Intent, error) + type IntentWeights map[model.EdgeType]float64 + func GetWeights(intent Intent) IntentWeights + type RecallMeta struct + AnchorCount int + Hint string + Intent Intent + IntentSource string + Traversed int + type RecallResponse struct + Meta RecallMeta + Results []RecallResult + func IntentAwareRecall(db *store.DB, query string, queryVec []float64, queryEntities []string, ...) (RecallResponse, error) + type RecallResult struct + Insight *model.Insight + Intent Intent + Score float64 + Signals SignalScores + Via string + type ScoredInsight struct + Insight *model.Insight + Score float64 + func KeywordSearch(insights []*model.Insight, query string, limit int) []ScoredInsight + type SignalScores struct + Entity float64 + Graph float64 + Keyword float64 + Similarity float64 + type TraversalParams struct + BeamWidth int + MaxDepth int + MaxVisited int