Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultMaxDepth = 32 MaxDepthCap = 128 )
Variables ¶
This section is empty.
Functions ¶
func FormatCompact ¶
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func NewEngine ¶
func NewEngine(s QueryStore) *Engine
type QueryStore ¶
type QueryStore interface {
GetNode(ctx context.Context, id string) (*store.Node, error)
GetAncestors(ctx context.Context, id string) ([]*store.Node, error)
GetDescendants(ctx context.Context, id string, maxDepth int) ([]*store.Node, error)
GetSiblings(ctx context.Context, id string) ([]*store.Node, error)
SearchRanked(ctx context.Context, query string, limit int) ([]*store.RankedNode, error)
GetDiffsSince(ctx context.Context, sinceSnapshotID int64) ([]*store.DiffRecord, error)
}
type Result ¶
type Result struct {
Nodes []ScoredNode
TokensUsed int
}
type ScoredNode ¶
Click to show internal directories.
Click to hide internal directories.