queryplan

package
v0.0.0-...-13e68c6 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailedToGenerateQueryPlan = errors.New("Failed to generate query plan")

Functions

This section is empty.

Types

type QueryPlan

type QueryPlan struct {
	Language      string          `yaml:"language" json:"language"`
	SearchQueries []SearchQueries `yaml:"search_queries" json:"search_queries"`
	Instruction   string          `yaml:"instruction" json:"instruction"`
}

func GenerateQueryPlan

func GenerateQueryPlan(ctx context.Context, m llm.Model, query string) (*QueryPlan, error)

type SearchQueries

type SearchQueries struct {
	Query       string `yaml:"query" json:"query"`
	Description string `yaml:"description" json:"description"`
}

Jump to

Keyboard shortcuts

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