DSPy Program Design for Code Generation

planningChallenge

Prompt Content

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.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations