cmd

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OnnxLibraryPath string

OnnxLibraryPath can be set via CLI flag to override the default resolution logic

Functions

func NewIndexCmd

func NewIndexCmd() *cobra.Command

NewIndexCmd creates the index command.

func NewRunCmd

func NewRunCmd() *cobra.Command

NewRunCmd creates the run command.

func NewSearchCmd

func NewSearchCmd() *cobra.Command

NewSearchCmd creates the search command.

Types

type ListDocumentsInput

type ListDocumentsInput struct{}

ListDocumentsInput defines the input for list_documents (empty).

type ListDocumentsOutput

type ListDocumentsOutput struct {
	Documents string `json:"documents"`
}

ListDocumentsOutput defines the output for list_documents.

type SearchInput

type SearchInput struct {
	Query      string `json:"query" jsonschema:"The search query to find relevant documents"`
	Limit      int    `json:"limit,omitempty" jsonschema:"Maximum number of results to return (default: 5, max: 20)"`
	Rerank     *bool  `json:"rerank,omitempty" jsonschema:"Enable cross-encoder reranking for better relevance (default: true when available)"`
	Candidates int    `json:"candidates,omitempty" jsonschema:"Number of candidates to fetch before reranking (default: 50, max: 100)"`
}

SearchInput defines the input parameters for the search tool.

type SearchOutput

type SearchOutput struct {
	Results string `json:"results"`
}

SearchOutput defines the output for the search tool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL