Skip to content

Slot: max_labeled_demos

URI: dspy:max_labeled_demos

Applicable Classes

Name Description Modifies Slot
LabeledFewShot Trivial optimizer that injects labelled few-shot demos (``dspy no
BootstrapFewShot Bootstraps demos by running the teacher program (``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
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
InferRules Optimizer that infers natural-language rules from training data (``dspy no

Properties

Type and Range

Property Value
Range Integer
Domain Of LabeledFewShot, BootstrapFewShot, MIPROv2, SIMBA, GEPA

Cardinality and Requirements

Property Value
### Slot Characteristics
Property Value
If Absent int(16)

Value Constraints

Property Value
Minimum Value 0

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self dspy:max_labeled_demos
native dspy:max_labeled_demos

LinkML Source

name: max_labeled_demos
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: int(16)
domain_of:
- LabeledFewShot
- BootstrapFewShot
- MIPROv2
- SIMBA
- GEPA
range: integer
minimum_value: 0