Implement RAG with Adaptive Thinking

implementationChallengeSeptember 28, 2025

Prompt Content

Implement the RAG component, connecting your agents to a vector database containing simulated legal documents. Specifically, detail how the 'Legal Researcher' agent uses adaptive reasoning budgets (e.g., by dynamically adjusting the number of RAG calls or context window size) with Gemini 2.5 Pro to refine search queries and retrieve the most relevant information for complex legal problems, preventing hallucination.

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