Skip to content

Class: BootstrapFewShotWithRandomSearch

BootstrapFewShot + random search over program variants (dspy.BootstrapFewShotWithRandomSearch).

URI: dspy:BootstrapFewShotWithRandomSearch

 classDiagram
    class BootstrapFewShotWithRandomSearch
    click BootstrapFewShotWithRandomSearch href "../BootstrapFewShotWithRandomSearch/"
      BootstrapFewShot <|-- BootstrapFewShotWithRandomSearch
        click BootstrapFewShot href "../BootstrapFewShot/"

      BootstrapFewShotWithRandomSearch : description

      BootstrapFewShotWithRandomSearch : id

      BootstrapFewShotWithRandomSearch : max_bootstrapped_demos

      BootstrapFewShotWithRandomSearch : max_errors

      BootstrapFewShotWithRandomSearch : max_labeled_demos

      BootstrapFewShotWithRandomSearch : max_rounds

      BootstrapFewShotWithRandomSearch : metric

      BootstrapFewShotWithRandomSearch : metric_threshold

      BootstrapFewShotWithRandomSearch : name

      BootstrapFewShotWithRandomSearch : num_candidate_programs

      BootstrapFewShotWithRandomSearch : num_threads

      BootstrapFewShotWithRandomSearch : teacher_settings





        BootstrapFewShotWithRandomSearch --> "0..1" Any : teacher_settings
        click Any href "../Any/"



Inheritance

Slots

Name Cardinality and Range Description Inheritance
num_candidate_programs 0..1
Integer
direct
num_threads 0..1
Integer
direct
metric_threshold 0..1
Float
BootstrapFewShot
teacher_settings 0..1
Any
BootstrapFewShot
max_bootstrapped_demos 0..1
Integer
BootstrapFewShot
max_labeled_demos 0..1
Integer
BootstrapFewShot
max_rounds 0..1
Integer
BootstrapFewShot
max_errors 0..1
Integer
BootstrapFewShot
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

Aliases

  • BootstrapRS

Identifier and Mapping Information

Annotations

property value
dspy_source_paths ['dspy/teleprompt/random_search.py']
dspy_source_urls ['https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/random_search.py']

Schema Source

Mappings

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

LinkML Source

Direct

name: BootstrapFewShotWithRandomSearch
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/teleprompt/random_search.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/random_search.py
description: BootstrapFewShot + random search over program variants (``dspy.BootstrapFewShotWithRandomSearch``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
aliases:
- BootstrapRS
is_a: BootstrapFewShot
slots:
- num_candidate_programs
- num_threads

Induced

name: BootstrapFewShotWithRandomSearch
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/teleprompt/random_search.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/random_search.py
description: BootstrapFewShot + random search over program variants (``dspy.BootstrapFewShotWithRandomSearch``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
aliases:
- BootstrapRS
is_a: BootstrapFewShot
attributes:
  num_candidate_programs:
    name: num_candidate_programs
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: BootstrapFewShotWithRandomSearch
    domain_of:
    - BootstrapFewShotWithRandomSearch
    - BootstrapFewShotWithOptuna
    - SIMBA
    range: integer
    minimum_value: 1
  num_threads:
    name: num_threads
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: BootstrapFewShotWithRandomSearch
    domain_of:
    - Parallel
    - BootstrapFewShotWithRandomSearch
    - GEPA
    - BootstrapFinetune
    - Evaluate
    - Settings
    range: integer
    minimum_value: 1
  metric_threshold:
    name: metric_threshold
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: BootstrapFewShotWithRandomSearch
    domain_of:
    - BestOfN
    - Refine
    - BootstrapFewShot
    - COPRO
    - MIPROv2
    range: float
  teacher_settings:
    name: teacher_settings
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: BootstrapFewShotWithRandomSearch
    domain_of:
    - BootstrapFewShot
    - MIPROv2
    - BootstrapFinetune
    range: Any
  max_bootstrapped_demos:
    name: max_bootstrapped_demos
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    ifabsent: int(4)
    owner: BootstrapFewShotWithRandomSearch
    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: BootstrapFewShotWithRandomSearch
    domain_of:
    - LabeledFewShot
    - BootstrapFewShot
    - MIPROv2
    - SIMBA
    - GEPA
    range: integer
    minimum_value: 0
  max_rounds:
    name: max_rounds
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    ifabsent: int(1)
    owner: BootstrapFewShotWithRandomSearch
    domain_of:
    - BootstrapFewShot
    range: integer
    minimum_value: 1
  max_errors:
    name: max_errors
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: BootstrapFewShotWithRandomSearch
    domain_of:
    - Parallel
    - BootstrapFewShot
    - Evaluate
    - Settings
    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: BootstrapFewShotWithRandomSearch
    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: BootstrapFewShotWithRandomSearch
    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: BootstrapFewShotWithRandomSearch
    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: BootstrapFewShotWithRandomSearch
    domain_of:
    - NamedThing
    - LMToolSpec
    range: string