Dspy.Predict (dspy v0.1.0)
View SourceBasic prediction module for DSPy.
The Predict module takes a signature and generates predictions by constructing prompts and calling the language model.
Summary
Functions
Create a new Predict module.
Callback implementation for Dspy.Module.parameters/1.
Callback implementation for Dspy.Module.update_parameters/2.
Types
@type t() :: %Dspy.Predict{ examples: [Dspy.Example.t()], max_retries: non_neg_integer(), signature: Dspy.Signature.t() }
Functions
Create a new Predict module.
Callback implementation for Dspy.Module.parameters/1.
Callback implementation for Dspy.Module.update_parameters/2.