Class: GEPA
Genetic-evolutionary Prompt Adaptation optimizer (dspy.GEPA).
URI: dspy:GEPA
classDiagram
class GEPA
click GEPA href "../GEPA/"
Teleprompter <|-- GEPA
click Teleprompter href "../Teleprompter/"
GEPA : description
GEPA : id
GEPA : max_bootstrapped_demos
GEPA : max_labeled_demos
GEPA : metric
GEPA : name
GEPA : num_threads
Inheritance
- NamedThing
- Teleprompter
- GEPA
- Teleprompter
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| num_threads | 0..1 Integer |
direct | |
| max_bootstrapped_demos | 0..1 Integer |
direct | |
| max_labeled_demos | 0..1 Integer |
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/gepa/gepa.py'] |
| dspy_source_urls | ['https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/gepa/gepa.py'] |
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:GEPA |
| native | dspy:GEPA |
LinkML Source
Direct
name: GEPA
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/teleprompt/gepa/gepa.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/gepa/gepa.py
description: Genetic-evolutionary Prompt Adaptation optimizer (``dspy.GEPA``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
slots:
- num_threads
- max_bootstrapped_demos
- max_labeled_demos
Induced
name: GEPA
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/teleprompt/gepa/gepa.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/gepa/gepa.py
description: Genetic-evolutionary Prompt Adaptation optimizer (``dspy.GEPA``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
attributes:
num_threads:
name: num_threads
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: GEPA
domain_of:
- Parallel
- BootstrapFewShotWithRandomSearch
- GEPA
- BootstrapFinetune
- Evaluate
- Settings
range: integer
minimum_value: 1
max_bootstrapped_demos:
name: max_bootstrapped_demos
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: int(4)
owner: GEPA
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: GEPA
domain_of:
- LabeledFewShot
- BootstrapFewShot
- MIPROv2
- SIMBA
- GEPA
range: integer
minimum_value: 0
metric:
name: metric
description: Dotted import path of the metric callable (or its name).
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: GEPA
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: GEPA
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: GEPA
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: GEPA
domain_of:
- NamedThing
- LMToolSpec
range: string