Implement RAG with DSPy for Policy Contextualization

implementationChallenge

Prompt Content

Implement a DSPy `Chain` that combines RAG for retrieving relevant academic integrity policies with Gemini 2.5 Pro's 'Deep Think' mode for analyzing student actions against these policies. The chain should take a student action log and a query regarding potential misconduct, then output identified policy violations and their corresponding citations.

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