DSPy Primitives
Guide the user through DSPy's built-in primitive types for multimodal inputs, code handling, and conversation history.
Step 1: Understand the task
Before using primitives, clarify:
- What kind of non-text data? Images, audio, code, or conversation history — each has its own primitive type.
- Does the LM support it natively?
dspy.Imageneeds a vision model (GPT-4o, Claude 3+, Gemini).dspy.Audioneeds an audio model (GPT-4o-audio-preview, Gemini). `dspy.Code
[Description truncada. Veja o README completo no GitHub.]