Skip to main content
Loading navigation

DSPy Program Design for Code Generation

Prompt source

planning1 lines1 sectionsNo variables0 checklist items
Design a DSPy program that orchestrates multiple LLM calls for the 'Code Generation' task. Define the signature for generating an initial code draft, then another signature for refining the code based on static analysis feedback (e.g., linting errors, security warnings). Specify how different LLMs (OpenAI o3, Hugging Face Hub models) would be integrated into different stages of this DSPy program.