Task Decomposition for Analysis and Hallucination Reduction

implementationChallenge

Prompt Content

Instruct your Claude agent to break down the 'Policy Document Analysis' task into several sub-tasks (e.g., 'Identify all clauses related to data privacy', 'Summarize implications of each identified clause'). The agent should use its `retrieve_document_chunks` tool for each sub-task to ground its answers in the document text, minimizing hallucinations. Describe how the agent's internal reasoning process (prompt engineering) facilitates this decomposition and retrieval-augmented generation. Demonstrate this with a detailed prompt example.

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