Class: MIPROv2
Multi-prompt instruction-program optimizer v2 (dspy.MIPROv2).
URI: dspy:MIPROv2
classDiagram
class MIPROv2
click MIPROv2 href "../MIPROv2/"
Teleprompter <|-- MIPROv2
click Teleprompter href "../Teleprompter/"
MIPROv2 : auto
MIPROv2 : description
MIPROv2 : id
MIPROv2 : init_temperature
MIPROv2 : log_dir
MIPROv2 : max_bootstrapped_demos
MIPROv2 : max_labeled_demos
MIPROv2 : metric
MIPROv2 : metric_threshold
MIPROv2 : name
MIPROv2 : num_candidates
MIPROv2 : num_trials
MIPROv2 : prompt_model
MIPROv2 --> "0..1" BaseLM : prompt_model
click BaseLM href "../BaseLM/"
MIPROv2 : task_model
MIPROv2 --> "0..1" BaseLM : task_model
click BaseLM href "../BaseLM/"
MIPROv2 : teacher_settings
MIPROv2 --> "0..1" Any : teacher_settings
click Any href "../Any/"
MIPROv2 : track_stats
Inheritance
- NamedThing
- Teleprompter
- MIPROv2
- Teleprompter
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| auto | 0..1 String |
MIPROv2 auto mode (light / medium / heavy) | direct |
| num_candidates | 0..1 Integer |
Number of candidate prompts / programs to evaluate per trial | direct |
| num_trials | 0..1 Integer |
direct | |
| init_temperature | 0..1 Float |
direct | |
| max_bootstrapped_demos | 0..1 Integer |
direct | |
| max_labeled_demos | 0..1 Integer |
direct | |
| track_stats | 0..1 Boolean |
direct | |
| log_dir | 0..1 String |
direct | |
| prompt_model | 0..1 BaseLM |
direct | |
| task_model | 0..1 BaseLM |
direct | |
| metric_threshold | 0..1 Float |
direct | |
| teacher_settings | 0..1 Any |
direct | |
| metric | 0..1 String |
Dotted import path of the metric callable (or its name) | Teleprompter |
| id | 1 Identifier |
Stable opaque identifier for an instance | NamedThing |
| name | 0..1 String |
Short human-readable name | NamedThing |
| description | 0..1 String |
Free-form description | NamedThing |
In Subsets
Identifier and Mapping Information
Annotations
| property | value |
|---|---|
| dspy_source_paths | ['dspy/teleprompt/mipro_optimizer_v2.py'] |
| dspy_source_urls | ['https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/mipro_optimizer_v2.py'] |
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:MIPROv2 |
| native | dspy:MIPROv2 |
LinkML Source
Direct
name: MIPROv2
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/teleprompt/mipro_optimizer_v2.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/mipro_optimizer_v2.py
description: Multi-prompt instruction-program optimizer v2 (``dspy.MIPROv2``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
slots:
- auto
- num_candidates
- num_trials
- init_temperature
- max_bootstrapped_demos
- max_labeled_demos
- track_stats
- log_dir
- prompt_model
- task_model
- metric_threshold
- teacher_settings
Induced
name: MIPROv2
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/teleprompt/mipro_optimizer_v2.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/mipro_optimizer_v2.py
description: Multi-prompt instruction-program optimizer v2 (``dspy.MIPROv2``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
attributes:
auto:
name: auto
description: MIPROv2 auto mode (light / medium / heavy).
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: MIPROv2
domain_of:
- MIPROv2
range: string
num_candidates:
name: num_candidates
description: Number of candidate prompts / programs to evaluate per trial.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: MIPROv2
domain_of:
- MIPROv2
range: integer
minimum_value: 1
num_trials:
name: num_trials
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: MIPROv2
domain_of:
- BootstrapFewShotWithOptuna
- MIPROv2
range: integer
minimum_value: 1
init_temperature:
name: init_temperature
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: MIPROv2
domain_of:
- COPRO
- MIPROv2
range: float
max_bootstrapped_demos:
name: max_bootstrapped_demos
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: int(4)
owner: MIPROv2
domain_of:
- BootstrapFewShot
- MIPROv2
- SIMBA
- GEPA
range: integer
minimum_value: 0
max_labeled_demos:
name: max_labeled_demos
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: int(16)
owner: MIPROv2
domain_of:
- LabeledFewShot
- BootstrapFewShot
- MIPROv2
- SIMBA
- GEPA
range: integer
minimum_value: 0
track_stats:
name: track_stats
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: boolean(False)
owner: MIPROv2
domain_of:
- COPRO
- MIPROv2
range: boolean
log_dir:
name: log_dir
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: MIPROv2
domain_of:
- MIPROv2
range: string
prompt_model:
name: prompt_model
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: MIPROv2
domain_of:
- COPRO
- MIPROv2
range: BaseLM
inlined: true
task_model:
name: task_model
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: MIPROv2
domain_of:
- MIPROv2
range: BaseLM
inlined: true
metric_threshold:
name: metric_threshold
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: MIPROv2
domain_of:
- BestOfN
- Refine
- BootstrapFewShot
- COPRO
- MIPROv2
range: float
teacher_settings:
name: teacher_settings
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: MIPROv2
domain_of:
- BootstrapFewShot
- MIPROv2
- BootstrapFinetune
range: Any
metric:
name: metric
description: Dotted import path of the metric callable (or its name).
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: MIPROv2
domain_of:
- Teleprompter
- Evaluate
range: string
id:
name: id
description: Stable opaque identifier for an instance.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: schema:identifier
identifier: true
owner: MIPROv2
domain_of:
- NamedThing
range: Identifier
required: true
name:
name: name
description: Short human-readable name.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: rdfs:label
owner: MIPROv2
domain_of:
- NamedThing
- LMToolCallPart
- LMMessage
- LMToolSpec
range: string
description:
name: description
description: Free-form description.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: dct:description
owner: MIPROv2
domain_of:
- NamedThing
- LMToolSpec
range: string