Documentation
¶
Overview ¶
Package search provides shared search types and logic for semantic search over stored LLM sessions. It is used by both the REST API endpoint and the MCP server tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
type Output struct {
Query string `json:"query"`
Results []Result `json:"results"`
Count int `json:"count"`
}
Output represents the output of a search operation.
type Result ¶
type Result struct {
Hash string `json:"hash"`
Score float32 `json:"score"`
Role string `json:"role"`
Preview string `json:"preview"`
Turns int `json:"turns"`
Branch []Turn `json:"branch"`
}
Result represents a single search result.
type Searcher ¶
type Searcher struct {
// contains filtered or unexported fields
}
func NewSearcher ¶
func (*Searcher) BuildResult ¶
BuildResult converts a vector query result and DAG into a Result.
Click to show internal directories.
Click to hide internal directories.