Versions in this module Expand all Collapse all v0 v0.3.0 Jun 15, 2026 v0.2.0 May 17, 2026 Changes in this version + type BatchKnowledgeGraph interface + AddEdgeBatch func(ctx context.Context, edges []Edge) error + AddNodeBatch func(ctx context.Context, nodes []Node) error + DeleteNodeBatch func(ctx context.Context, ids []string) error + UpsertEdgeBatch func(ctx context.Context, edges []Edge) error + UpsertNodeBatch func(ctx context.Context, nodes []Node) error + type Edge struct + From string + Metadata map[string]string + To string + Type string + Weight float64 + type GraphConfig struct + Directed bool + EdgeTypes []string + Name string + NodeTypes []string + type GraphManager interface + CreateGraph func(ctx context.Context, cfg GraphConfig) error + DropGraph func(ctx context.Context, name string) error + GraphExists func(ctx context.Context, name string) (bool, error) + GraphStats func(ctx context.Context, name string) (*GraphStats, error) + ListGraphs func(ctx context.Context) ([]string, error) + type GraphStats struct + EdgeCount int64 + EdgeTypeStats map[string]int64 + Name string + NodeCount int64 + NodeTypeStats map[string]int64 + type KnowledgeGraph interface + AddEdge func(ctx context.Context, edge Edge) error + AddNode func(ctx context.Context, node Node) error + DeleteEdge func(ctx context.Context, from, to, edgeType string) error + DeleteNode func(ctx context.Context, id string) error + FindNodes func(ctx context.Context, nodeType string, filters map[string]string) ([]Node, error) + Name func() string + Traverse func(ctx context.Context, startNodes []string, opts TraversalOptions) (*TraversalResult, error) + UpsertEdge func(ctx context.Context, edge Edge) error + UpsertNode func(ctx context.Context, node Node) error + type Node struct + Content string + ID string + Metadata map[string]string + Source string + Type string + type Retriever struct + func NewRetriever(cfg RetrieverConfig) *Retriever + func (r *Retriever) Retrieve(ctx context.Context, q retrieve.Query) (*retrieve.Result, error) + type RetrieverConfig struct + DefaultDepth int + DefaultMaxNodes int + EdgeTypes []string + Graph KnowledgeGraph + Observer retrieve.Observer + type TraversalOptions struct + Depth int + EdgeTypes []string + MaxNodes int + MinWeight float64 + NodeTypes []string + type TraversalResult struct + Edges []Edge + Nodes []Node + Paths map[string][]string