Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.14.0
metadata
title: Deep Research Agent
emoji: π§¬
colorFrom: red
colorTo: yellow
sdk: gradio
app_file: app.py
pinned: false
Deep Research Agents π
An agentic research pipeline that helps you clarify topics, plan research, and automatically gather information from the web to generate comprehensive Markdown reports.
π Features
- Topic Clarification: Iteratively refines broad research questions into specific, actionable topics.
- Strategic Planning: Generates structured research plans to cover all necessary aspects of a topic.
- Agentic Coordination: Uses
smolagentsand Tavily Search to orchestrate specialized agents that browse the web and synthesize findings. - Robust Model Support: Specifically optimized for "Reasoning" models (like DeepSeek-R1) and stable tool-calling models (like Qwen-2.5-Coder and MiniMax).
- Corporate Network Ready: Includes automated SSL certificate handling via
truststoreto bypass common proxy errors.
π οΈ Project Structure
researcher-agents/
βββ main.py # CLI Entry point
βββ app.py # Streamlit UI
βββ requirements.txt # Dependencies
βββ src/ # Core Agents
βββ clarifier.py # Topic refinement
βββ planner.py # Strategic planning
βββ splitter.py # Task decomposition
βββ coordinator.py # Agent orchestration
βββ prompts.py # LLM Instructions
βοΈ Setup
Clone the repository:
git clone https://github.com/vizcayal/researcher_agents.git cd researcher_agentsCreate a virtual environment:
python -m venv .venv .\.venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtEnvironment Variables: Create a
.envfile in the root directory:HF_KEY=your_huggingface_token FIRECRAWL_KEY=your_firecrawl_api_key
π Usage
Command Line Interface
Run the full automated research pipeline:
python main.py
Gradio Web App
Run the interactive UI:
python app.py
π€ Recommended Models
The project is configured to work with the Hugging Face Serverless Inference API:
- Reasoning:
deepseek-ai/DeepSeek-R1-Distill-Llama-8B - Orchestration:
Qwen/Qwen2.5-Coder-32B-Instruct - Output:
meta-llama/Llama-3.3-70B-Instruct
π License
MIT