Integrate Command R+ for Constraint Generation and Giskard for Validation

implementationChallengeNovember 21, 2025

Prompt Content

Develop a module that uses Command R+ (via its API) to process hypothetical or real-world zoning ordinance texts and generate structured constraints or weighting factors for your optimization model (e.g., 'If BESS is within 500m of residential area, add X cost penalty'). Then, after your optimization model produces candidate BESS siting recommendations, integrate Giskard into your workflow. Use Giskard to define and test for fairness criteria (e.g., ensure BESS are not disproportionately sited in low-income areas or areas with specific demographics) and robustness (e.g., how sensitive are siting recommendations to small changes in load forecasts). Generate a Giskard report summarizing these findings.

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