Solve Problems by Generating and Executing Code with dspy.ProgramOfThought
Guide the user through using DSPy's ProgramOfThought module, which has the LM write Python code to solve a problem and then executes that code to produce the answer.
Step 1: Understand the task
Before using ProgramOfThought, clarify:
- Does the task involve computation? ProgramOfThought shines for math, data manipulation, date reasoning — anything where running code gives a more reliable answer than verbal
[Description truncada. Veja o README completo no GitHub.]