Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse files13 unmodified lines141516171718192021222324252627282930313277 unmodified lines11011111210111311411511613 unmodified lines2. Second question should use the first answer to narrow down the focus3. Third question should use both previous answers to ask about specific requirements
After getting all three answers, use them to create a sophisticated search plan."""After getting all three answers, use them to create a sophisticated search plan.
IMPORTANT: Your response MUST be a valid JSON object with a 'searches' array containing objects with 'query' and 'reason' fields. Example format:{ "searches": [ { "query": "search term", "reason": "reason for this search" } ]}
DO NOT include any other fields or formatting. The response must be a valid JSON object that matches the WebSearchPlan model exactly."""
QUESTION_GENERATION_INSTRUCTIONS = """You are a research assistant that helps refine research topics through focused questions.Given a research topic and any previous answers, generate ONE specific question that will help narrow down and focus the research.77 unmodified lines# Create the planner agentplanner_agent = Agent( name="PlannerAgent", description=INSTRUCTIONS + "\n\nIMPORTANT: Your response MUST be a valid JSON object with a 'searches' array containing objects with 'query' and 'reason' fields. Example format:\n{\n \"searches\": [\n {\n \"query\": \"search term\",\n \"reason\": \"reason for this search\"\n }\n ]\n}\n\nDO NOT include any other fields or formatting. The response must be a valid JSON object that matches the WebSearchPlan model exactly.", description=INSTRUCTIONS, model="gpt-4", output_type=WebSearchPlan,)planner_agent.py+14-2