Class: Ensemble
Ensembles multiple compiled programs (dspy.Ensemble).
URI: dspy:Ensemble
classDiagram
class Ensemble
click Ensemble href "../Ensemble/"
Teleprompter <|-- Ensemble
click Teleprompter href "../Teleprompter/"
Ensemble : description
Ensemble : id
Ensemble : metric
Ensemble : name
Ensemble : reduce_fn
Ensemble : size
Inheritance
- NamedThing
- Teleprompter
- Ensemble
- Teleprompter
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| size | 0..1 Integer |
Number of programs to ensemble | direct |
| reduce_fn | 0..1 String |
Dotted import path of the reduction function | 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/ensemble.py'] |
| dspy_source_urls | ['https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/ensemble.py'] |
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:Ensemble |
| native | dspy:Ensemble |
LinkML Source
Direct
name: Ensemble
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/teleprompt/ensemble.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/ensemble.py
description: Ensembles multiple compiled programs (``dspy.Ensemble``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
attributes:
size:
name: size
description: Number of programs to ensemble.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
domain_of:
- Ensemble
range: integer
minimum_value: 1
reduce_fn:
name: reduce_fn
description: Dotted import path of the reduction function.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
domain_of:
- Ensemble
range: string
Induced
name: Ensemble
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/teleprompt/ensemble.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/ensemble.py
description: Ensembles multiple compiled programs (``dspy.Ensemble``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
attributes:
size:
name: size
description: Number of programs to ensemble.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Ensemble
domain_of:
- Ensemble
range: integer
minimum_value: 1
reduce_fn:
name: reduce_fn
description: Dotted import path of the reduction function.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Ensemble
domain_of:
- Ensemble
range: string
metric:
name: metric
description: Dotted import path of the metric callable (or its name).
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Ensemble
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: Ensemble
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: Ensemble
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: Ensemble
domain_of:
- NamedThing
- LMToolSpec
range: string