Documentation
¶
Index ¶
- type BootstrapFewShot
- type Copro
- type MIPRO
- type MIPROOption
- func WithFullEvalSteps(n int) MIPROOption
- func WithMaxBootstrappedDemos(n int) MIPROOption
- func WithMaxLabeledDemos(n int) MIPROOption
- func WithMiniBatchSize(n int) MIPROOption
- func WithNumCandidates(n int) MIPROOption
- func WithNumTrials(n int) MIPROOption
- func WithPromptModel(model core.LLM) MIPROOption
- func WithTaskModel(model core.LLM) MIPROOption
- func WithVerbose(v bool) MIPROOption
- type Trial
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootstrapFewShot ¶
type BootstrapFewShot struct {
Metric func(example map[string]any, prediction map[string]any, ctx context.Context) bool
MaxBootstrapped int
Config *core.DSPYConfig
}
func NewBootstrapFewShot ¶
type Copro ¶
type Copro struct {
Metric func(example, prediction map[string]any, ctx context.Context) bool
MaxBootstrapped int
SubOptimizer core.Optimizer
Config *core.DSPYConfig
}
type MIPRO ¶
type MIPRO struct {
Metric func(example, prediction map[string]any, ctx context.Context) float64
NumCandidates int
MaxBootstrappedDemos int
MaxLabeledDemos int
NumTrials int
PromptModel core.LLM
TaskModel core.LLM
MiniBatchSize int
FullEvalSteps int
Verbose bool
}
type MIPROOption ¶
type MIPROOption func(*MIPRO)
func WithFullEvalSteps ¶
func WithFullEvalSteps(n int) MIPROOption
func WithMaxBootstrappedDemos ¶
func WithMaxBootstrappedDemos(n int) MIPROOption
func WithMaxLabeledDemos ¶
func WithMaxLabeledDemos(n int) MIPROOption
func WithMiniBatchSize ¶
func WithMiniBatchSize(n int) MIPROOption
func WithNumCandidates ¶
func WithNumCandidates(n int) MIPROOption
func WithNumTrials ¶
func WithNumTrials(n int) MIPROOption
func WithPromptModel ¶
func WithPromptModel(model core.LLM) MIPROOption
func WithTaskModel ¶
func WithTaskModel(model core.LLM) MIPROOption
func WithVerbose ¶
func WithVerbose(v bool) MIPROOption
Click to show internal directories.
Click to hide internal directories.