Skip to content

Slot: train

Training examples attached to a predictor (used by some optimizers).

URI: dspy:train

Applicable Classes

Name Description Modifies Slot
Predictor Module that wraps a Signature + LM and produces a Prediction no
Predict Basic input-to-output predictor (``dspy no
ChainOfThought Predictor that injects a free-form rationale field (``dspy no
MultiChainComparison Generates N chains and selects the best (``dspy no
ReAct Reasoning + Acting agent with tool use (``dspy no
ReActV2 Next-generation ReAct agent (``dspy no
ProgramOfThought Tool-using predictor that emits and executes Python code (``dspy no
CodeAct Code-acting agent (``dspy no

Properties

Type and Range

Property Value
Range Example
Domain Of Predictor

Cardinality and Requirements

Property Value
Multivalued Yes

Identifier and Mapping Information

Schema Source

Mappings

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

LinkML Source

name: train
description: Training examples attached to a predictor (used by some optimizers).
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
domain_of:
- Predictor
range: Example
multivalued: true
inlined: true
inlined_as_list: true