Documentation ¶
Index ¶
- func RegisterKagiCommands() *cobra.Command
- func RenderFastGPTAnswers(answer FastGPTAnswer, query string) (string, error)
- func RenderMarkdown(searchObjects []SearchObject) (string, error)
- type EnrichWebCommand
- type EnrichWebResponse
- type EnrichWebSettings
- type FastGPTAnswer
- type FastGPTCommand
- type FastGPTRequest
- type FastGPTResponse
- type FastGPTSettings
- type Reference
- type SearchObject
- type SummarizationRequest
- type SummarizationResponse
- type SummarizeCommand
- type SummarizeSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterKagiCommands ¶
func RenderFastGPTAnswers ¶
func RenderFastGPTAnswers(answer FastGPTAnswer, query string) (string, error)
func RenderMarkdown ¶
func RenderMarkdown(searchObjects []SearchObject) (string, error)
Types ¶
type EnrichWebCommand ¶
type EnrichWebCommand struct {
*cmds.CommandDescription
}
func NewEnrichWebCommand ¶
func NewEnrichWebCommand() (*EnrichWebCommand, error)
func (*EnrichWebCommand) RunIntoGlazeProcessor ¶
func (c *EnrichWebCommand) RunIntoGlazeProcessor( ctx context.Context, parsedLayers *layers.ParsedLayers, gp middlewares.Processor, ) error
type EnrichWebResponse ¶
type EnrichWebResponse struct { Meta struct { ID string `json:"id"` Node string `json:"node"` MS int `json:"ms"` } `json:"meta"` Data []SearchObject `json:"data"` }
type EnrichWebSettings ¶
type FastGPTAnswer ¶
type FastGPTCommand ¶
type FastGPTCommand struct {
*cmds.CommandDescription
}
func NewFastGPTCommand ¶
func NewFastGPTCommand() (*FastGPTCommand, error)
func (*FastGPTCommand) RunIntoWriter ¶
func (c *FastGPTCommand) RunIntoWriter( ctx context.Context, parsedLayers *layers.ParsedLayers, w io.Writer, ) error
type FastGPTRequest ¶
type FastGPTResponse ¶
type FastGPTResponse struct { Meta struct { ID string `json:"id"` Node string `json:"node"` MS int `json:"ms"` } `json:"meta"` Data FastGPTAnswer `json:"data"` }
type FastGPTSettings ¶
type SearchObject ¶
type SummarizationRequest ¶
type SummarizationResponse ¶
type SummarizeCommand ¶
type SummarizeCommand struct {
*cmds.CommandDescription
}
func NewSummarizeCommand ¶
func NewSummarizeCommand() (*SummarizeCommand, error)
func (*SummarizeCommand) RunIntoWriter ¶
func (c *SummarizeCommand) RunIntoWriter( ctx context.Context, parsedLayers *layers.ParsedLayers, w io.Writer, ) error
Click to show internal directories.
Click to hide internal directories.