Class: LabeledFewShot
Trivial optimizer that injects labelled few-shot demos (dspy.LabeledFewShot).
URI: dspy:LabeledFewShot
classDiagram
class LabeledFewShot
click LabeledFewShot href "../LabeledFewShot/"
Teleprompter <|-- LabeledFewShot
click Teleprompter href "../Teleprompter/"
LabeledFewShot : description
LabeledFewShot : id
LabeledFewShot : max_labeled_demos
LabeledFewShot : metric
LabeledFewShot : name
Inheritance
- NamedThing
- Teleprompter
- LabeledFewShot
- Teleprompter
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| 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/vanilla.py'] |
| dspy_source_urls | ['https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/vanilla.py'] |
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:LabeledFewShot |
| native | dspy:LabeledFewShot |
LinkML Source
Direct
name: LabeledFewShot
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/teleprompt/vanilla.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/vanilla.py
description: Trivial optimizer that injects labelled few-shot demos (``dspy.LabeledFewShot``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
slots:
- max_labeled_demos
Induced
name: LabeledFewShot
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/teleprompt/vanilla.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/vanilla.py
description: Trivial optimizer that injects labelled few-shot demos (``dspy.LabeledFewShot``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
attributes:
max_labeled_demos:
name: max_labeled_demos
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: int(16)
owner: LabeledFewShot
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: LabeledFewShot
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: LabeledFewShot
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: LabeledFewShot
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: LabeledFewShot
domain_of:
- NamedThing
- LMToolSpec
range: string