Skip to content

Class: COPRO

Coordinate-prompt optimizer (dspy.COPRO).

URI: dspy:COPRO

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

      COPRO : breadth

      COPRO : depth

      COPRO : description

      COPRO : id

      COPRO : init_temperature

      COPRO : metric

      COPRO : metric_threshold

      COPRO : name

      COPRO : prompt_model





        COPRO --> "0..1" BaseLM : prompt_model
        click BaseLM href "../BaseLM/"



      COPRO : track_stats

Inheritance

Slots

Name Cardinality and Range Description Inheritance
depth 0..1
Integer
direct
breadth 0..1
Integer
direct
init_temperature 0..1
Float
direct
track_stats 0..1
Boolean
direct
prompt_model 0..1
BaseLM
direct
metric_threshold 0..1
Float
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/copro_optimizer.py']
dspy_source_urls ['https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/copro_optimizer.py']

Schema Source

Mappings

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

LinkML Source

Direct

name: COPRO
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/teleprompt/copro_optimizer.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/copro_optimizer.py
description: Coordinate-prompt optimizer (``dspy.COPRO``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
slots:
- depth
- breadth
- init_temperature
- track_stats
- prompt_model
- metric_threshold

Induced

name: COPRO
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/teleprompt/copro_optimizer.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/copro_optimizer.py
description: Coordinate-prompt optimizer (``dspy.COPRO``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
attributes:
  depth:
    name: depth
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: COPRO
    domain_of:
    - COPRO
    range: integer
    minimum_value: 1
  breadth:
    name: breadth
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: COPRO
    domain_of:
    - COPRO
    range: integer
    minimum_value: 1
  init_temperature:
    name: init_temperature
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: COPRO
    domain_of:
    - COPRO
    - MIPROv2
    range: float
  track_stats:
    name: track_stats
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    ifabsent: boolean(False)
    owner: COPRO
    domain_of:
    - COPRO
    - MIPROv2
    range: boolean
  prompt_model:
    name: prompt_model
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: COPRO
    domain_of:
    - COPRO
    - MIPROv2
    range: BaseLM
    inlined: true
  metric_threshold:
    name: metric_threshold
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: COPRO
    domain_of:
    - BestOfN
    - Refine
    - BootstrapFewShot
    - COPRO
    - MIPROv2
    range: float
  metric:
    name: metric
    description: Dotted import path of the metric callable (or its name).
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: COPRO
    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: COPRO
    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: COPRO
    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: COPRO
    domain_of:
    - NamedThing
    - LMToolSpec
    range: string