Code
How It Works
Instructions- Defines agent through DSPy Signature class
- Provides clear and concise answers to questions
- Uses structured prompting for consistent responses
- Maintains helpful and informative tone
dspy.Signature: Typed prompt template for Q&Adspy.Predict: Program execution frameworkdspy.LM: Language model configuration
gpt-4o-mini: Cost-effective model for Q&A- Via OpenAI-compatible API integration
- Configurable through DSPy LM configuration