Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader loads spatial SQL codebook patterns from <workspace>/geo-codebook.
func (*Loader) BuildSummary ¶
BuildSummary returns a concise prompt-ready summary of available codebook patterns.
func (*Loader) ListPatterns ¶
ListPatterns ranks patterns against a freeform intent.
func (*Loader) RenderPattern ¶
RenderPattern renders a named SQL pattern with supplied variables.
type Match ¶
type Match struct {
Name string `json:"name"`
Description string `json:"description"`
Tags []string `json:"tags"`
Verified bool `json:"verified"`
SuccessRate float64 `json:"success_rate"`
Score int `json:"score"`
Source string `json:"source"`
}
Match describes a ranked pattern result for an intent lookup.
type Pattern ¶
type Pattern struct {
Name string `yaml:"name" json:"name"`
Description string `yaml:"description" json:"description"`
Tags []string `yaml:"tags" json:"tags"`
Template string `yaml:"template" json:"template"`
Variables map[string]Variable `yaml:"variables" json:"variables"`
Verified bool `yaml:"verified" json:"verified"`
SuccessRate float64 `yaml:"success_rate" json:"success_rate"`
Source string `yaml:"-" json:"source"`
}
Pattern describes a reusable spatial SQL pattern.
Click to show internal directories.
Click to hide internal directories.