Optimize Designs with Simulation Feedback & Groq

implementationChallengeNovember 25, 2025

Prompt Content

Establish an iterative optimization loop where proposed designs from Claude 3.5 Haiku (via DSPy) are evaluated by your `PoreNetworkSimulator`. The simulation results (charging time, capacitance proxy) should then feed back into DSPy, which refines its prompts to Claude for subsequent design iterations. Ensure that Groq is utilized for rapid inference whenever Claude 3.5 Haiku is called, allowing for quicker exploration of the design space. Aim to identify a set of Pareto-optimal designs.

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