Slot: predictors
Predictor children of a composite Module (named_predictors()).
URI: dspy:predictors
Applicable Classes
| Name |
Description |
Modifies Slot |
| Module |
Base class for DSPy programs (``dspy |
no |
| 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 |
| BestOfN |
Sample N candidates and select the highest-rewarded (``dspy |
no |
| Refine |
Iterative refinement loop (``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 |
| KNN |
K-nearest-neighbor demo selector (``dspy |
no |
| Parallel |
Run modules in parallel across batched inputs (``dspy |
no |
| RLM |
Reinforcement-learning model wrapper (``dspy |
no |
| Aggregator |
Aggregation helper (``dspy |
no |
| Retriever |
Abstract retrieval module |
no |
| Retrieve |
Generic retrieve module that calls ``dspy |
no |
| Embeddings |
Embedding-based nearest-neighbour retriever (``dspy |
no |
| EmbeddingsWithScores |
Embeddings retriever that also returns similarity scores (``dspy |
no |
| ColBERTv2 |
Remote ColBERTv2 retrieval server (``dspy |
no |
Properties
Type and Range
Cardinality and Requirements
| Property |
Value |
| Multivalued |
Yes |
Schema Source
Mappings
| Mapping Type |
Mapped Value |
| self |
dspy:predictors |
| native |
dspy:predictors |
LinkML Source
name: predictors
description: Predictor children of a composite Module (named_predictors()).
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
domain_of:
- Module
range: Predictor
multivalued: true
inlined: true
inlined_as_list: true