Skip to content

Class: Teleprompter

Base class for DSPy optimizers (dspy.Teleprompter).

  • NOTE: this is an abstract class and should not be instantiated directly

URI: dspy:Teleprompter

 classDiagram
    class Teleprompter
    click Teleprompter href "../Teleprompter/"
      NamedThing <|-- Teleprompter
        click NamedThing href "../NamedThing/"


      Teleprompter <|-- LabeledFewShot
        click LabeledFewShot href "../LabeledFewShot/"
      Teleprompter <|-- BootstrapFewShot
        click BootstrapFewShot href "../BootstrapFewShot/"
      Teleprompter <|-- COPRO
        click COPRO href "../COPRO/"
      Teleprompter <|-- MIPROv2
        click MIPROv2 href "../MIPROv2/"
      Teleprompter <|-- SIMBA
        click SIMBA href "../SIMBA/"
      Teleprompter <|-- GEPA
        click GEPA href "../GEPA/"
      Teleprompter <|-- Ensemble
        click Ensemble href "../Ensemble/"
      Teleprompter <|-- BetterTogether
        click BetterTogether href "../BetterTogether/"
      Teleprompter <|-- BootstrapFinetune
        click BootstrapFinetune href "../BootstrapFinetune/"
      Teleprompter <|-- AvatarOptimizer
        click AvatarOptimizer href "../AvatarOptimizer/"


      Teleprompter : description

      Teleprompter : id

      Teleprompter : metric

      Teleprompter : name

Inheritance

Slots

Name Cardinality and Range Description Inheritance
metric 0..1
String
Dotted import path of the metric callable (or its name) direct
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/teleprompt.py']
dspy_source_urls ['https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/teleprompt.py']

Schema Source

Mappings

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

LinkML Source

Direct

name: Teleprompter
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/teleprompt/teleprompt.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/teleprompt.py
description: Base class for DSPy optimizers (``dspy.Teleprompter``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: NamedThing
abstract: true
slots:
- metric

Induced

name: Teleprompter
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/teleprompt/teleprompt.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/teleprompt.py
description: Base class for DSPy optimizers (``dspy.Teleprompter``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: NamedThing
abstract: true
attributes:
  metric:
    name: metric
    description: Dotted import path of the metric callable (or its name).
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: Teleprompter
    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: Teleprompter
    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: Teleprompter
    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: Teleprompter
    domain_of:
    - NamedThing
    - LMToolSpec
    range: string