Expand description
§Prompt Optimizer
Prompt variant testing and automatic improvement tracking using bandit algorithms: UCB1, Epsilon-Greedy, Thompson Sampling, and BestFirst.
Structs§
- AbExperiment
Result - Result of one A/B experiment run (legacy).
- AbOptimizer
Config - Configuration for the legacy prompt A/B optimizer.
- Chain
OfThought Injector - Wraps a prompt with chain-of-thought scaffolding.
- FewShot
Example - A single input/output example for few-shot prompting.
- FewShot
Selector - Selects the most relevant few-shot examples that fit within a token budget.
- Promoter
Registry - Maps intent strings to the best known prompt variant (legacy).
- Prompt
AbOptimizer - Orchestrates prompt A/B testing (legacy).
- Prompt
Compression Optimizer - Unified facade that combines compression, few-shot selection, and CoT injection into a single optimisation pipeline.
- Prompt
Compressor - Applies lossless and near-lossless text compression to reduce token count.
- Prompt
Mutator - Applies simple transformations to prompt templates.
- Prompt
Optimizer - Tracks prompt variants and selects the best using bandit algorithms.
- Prompt
Variant - A single prompt variant being tracked by the optimizer.
- Scoring
Engine - Computes a weighted aggregate quality score from multiple metrics (legacy).
- Variant
Generator - Generates N prompt variants from a base prompt (legacy).
- Variant
Score - Score for a single prompt variant (legacy).
Enums§
- Compression
Goal - High-level objective that guides how the compression optimizer applies its tools.
- Optimization
Strategy - Strategy for selecting the next variant to evaluate.
- Prompt
Optimizer Error - Errors returned by the legacy prompt optimizer.
- Quality
Metric - A configurable quality metric used to score an inference response (legacy).
- Variant
Strategy - Strategies for generating prompt variants (legacy).