Documentation
¶
Overview ¶
Package prompt is the Stage-1 namespace for prompt-construction and prompt-optimisation types in package engine. See ../REFACTOR_PLAN.md.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ABTest ¶
ABTest pits two prompt variants against each other on incoming traffic.
func NewABTest ¶
func NewABTest(a, b DSPyVariant) *ABTest
NewABTest builds an A/B test between two variants.
type DSPyExample ¶
type DSPyExample = engine.DSPyExample
DSPyExample is one (input, output) demonstration backing the optimizer.
type DSPyVariant ¶
type DSPyVariant = engine.DSPyVariant
DSPyVariant is a candidate prompt being evaluated.
type Optimizer ¶
type Optimizer = engine.PromptOptimizer
Optimizer learns better prompts via DSPy-style example mining.
type Tuner ¶
type Tuner = engine.PromptTuner
Tuner is a lighter-weight prompt-tuning helper for online adjustments.
Click to show internal directories.
Click to hide internal directories.