Skip to content

Slot: reward_fn

Dotted import path of a reward function (Refine, BestOfN).

URI: dspy:reward_fn

Applicable Classes

Name Description Modifies Slot
BestOfN Sample N candidates and select the highest-rewarded (``dspy no
Refine Iterative refinement loop (``dspy no

Properties

Type and Range

Property Value
Range String
Domain Of BestOfN, Refine

Cardinality and Requirements

Property Value

Identifier and Mapping Information

Schema Source

Mappings

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

LinkML Source

name: reward_fn
description: Dotted import path of a reward function (Refine, BestOfN).
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
domain_of:
- BestOfN
- Refine
range: string