Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SearchText ¶
Types ¶
type Evidence ¶
type Evidence = retrieval.EvidenceDocument
type Options ¶
type Options struct {
Limit int
RetrieveOnly bool
Model string
CLI string
Length string
Timeout time.Duration
Binary string
MaxCharsPerDoc int
SourceTypes []string
IncludeRelated bool
RelatedLimit int
EntityIndex []entities.Entity
SearchLimit int
// DisableEntityExpansion keeps broad research retrieval off the expensive
// global entity index path. Direct ask calls keep the previous default.
DisableEntityExpansion bool
// DisableTagExpansion skips broad LIKE/INSTR tag scans. FTS still searches
// indexed user tags; exact tag examples can be gathered by callers that need
// them without paying this cost for every query variant.
DisableTagExpansion bool
}
type QueryHints ¶
type QueryHints struct {
TextQuery string `json:"text_query"`
Terms []string `json:"terms"`
TagQueries []string `json:"tag_queries"`
}
func Hints ¶
func Hints(question string) QueryHints
type Response ¶
type RetrievalInfo ¶
type RetrievalInfo = retrieval.RetrievalInfo
type RetrievalLane ¶ added in v0.2.12
type RetrievalLane = retrieval.RetrievalLane
type RetrievalSignal ¶
type RetrievalSignal = retrieval.RetrievalSignal
Click to show internal directories.
Click to hide internal directories.