Slot: metric
Dotted import path of the metric callable (or its name).
URI: dspy:metric
Applicable Classes
| Name |
Description |
Modifies Slot |
| Teleprompter |
Base class for DSPy optimizers (``dspy |
no |
| Evaluate |
Parallel program evaluator (``dspy |
no |
| LabeledFewShot |
Trivial optimizer that injects labelled few-shot demos (``dspy |
no |
| BootstrapFewShot |
Bootstraps demos by running the teacher program (``dspy |
no |
| BootstrapFewShotWithRandomSearch |
BootstrapFewShot + random search over program variants (``dspy |
no |
| BootstrapFewShotWithOptuna |
BootstrapFewShot driven by an Optuna hyperparameter search (``dspy |
no |
| KNNFewShot |
KNN-selected few-shot optimizer (``dspy |
no |
| COPRO |
Coordinate-prompt optimizer (``dspy |
no |
| MIPROv2 |
Multi-prompt instruction-program optimizer v2 (``dspy |
no |
| SIMBA |
Stochastic Introspective Mini-Batch Ascent optimizer (``dspy |
no |
| GEPA |
Genetic-evolutionary Prompt Adaptation optimizer (``dspy |
no |
| Ensemble |
Ensembles multiple compiled programs (``dspy |
no |
| BetterTogether |
Compose prompt + weight optimization (``dspy |
no |
| InferRules |
Optimizer that infers natural-language rules from training data (``dspy |
no |
| BootstrapFinetune |
Bootstrap demos then fine-tune the underlying LM (``dspy |
no |
| AvatarOptimizer |
Optimizer specialized for Avatar agents (``dspy |
no |
Properties
Type and Range
Cardinality and Requirements
Schema Source
Mappings
| Mapping Type |
Mapped Value |
| self |
dspy:metric |
| native |
dspy:metric |
LinkML Source
name: metric
description: Dotted import path of the metric callable (or its name).
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
domain_of:
- Teleprompter
- Evaluate
range: string