OpenDeepResearcher is an AI-powered multi-agent research assistant that autonomously plans, searches, analyzes, and synthesizes information into structured reports. The system uses locally hosted large language models via LM Studio, enabling private, cost-efficient, and intelligent deep research workflows without relying on cloud LLM APIs.
- 🔍 Autonomous research planning with subquestion generation
- 🌐 Real-time web search using Tavily API
- 🧠 Multi-agent reasoning pipeline (Planner → Searcher → Writer)
- 📝 Academic-style report generation with citations
- 🔒 Local LLM inference using LM Studio (privacy-friendly)
- 📊 Structured JSON research plans
- ⚡ Modular and extensible architecture
The system follows an agent-based pipeline:
-
Planner Agent
- Breaks user queries into 6–8 focused subquestions
- Generates structured research plans
- Extracts constraints and keywords
-
Searcher Agent
- Retrieves relevant sources using Tavily API
- Collects titles, URLs, snippets, and relevance scores
-
Writer Agent
- Synthesizes findings into a comprehensive academic report
- Adds citations and references
- Saves final output to file
LLM Runtime: LM Studio
Model: Qwen 2.5 7B Instruct
Inference: Local (offline capable)
Benefits:
- No cloud dependency
- Improved privacy
- Lower cost
- Full control over model execution
OpenDeepResearcher/
│── agents/
│ ├── planner_agent.py
│ ├── searcher_agent.py
│ └── writer_agent.py
│
│── main.py
│── requirements.txt
│── README.md
│── LICENSE
│── .gitignore
Clone the repository:
git clone https://github.com/diamehak/OpenDeepResearcher.git
cd OpenDeepResearcherCreate virtual environment:
python -m venv venv
source venv/bin/activate # Mac/Linux
venv\Scripts\activate # WindowsInstall dependencies:
pip install -r requirements.txt- Install LM Studio
- Download Qwen 2.5 7B Instruct model
- Start the LM Studio local server
- Ensure API endpoint is running:
http://127.0.0.1:1234
This project uses the Tavily Search API for retrieving research sources.
Before running the project, open the file:
agents/searcher_agent.py
Locate the API key placeholder:
ENTER_YOUR_TAVILY_API_KEY_HERE
Replace it with your actual Tavily API key.
You can obtain a Tavily API key from: https://tavily.com
Run the main program:
python main.pyEnter your research question when prompted.
Example:
Impact of artificial intelligence on healthcare diagnostics
The system will:
- Generate subquestions
- Search for sources
- Produce a structured research report
- Save output to a file
The system generates:
- Research plan JSON file
- Detailed terminal logs
- Final academic report (.txt)
- Academic research assistance
- Literature reviews
- Market analysis
- Technical research
- Policy research
- Automated report generation
- Memory-enabled agents
- Multi-modal document ingestion (PDFs)
- Citation formatting (APA/IEEE)
- Web UI dashboard
- Vector database integration
- Streaming responses
- Python
- LM Studio
- Qwen 2.5 7B
- Tavily Search API
- Requests
- Agentic AI architecture
Contributions are welcome!
- Fork the repository
- Create a feature branch
- Commit changes
- Open a Pull Request
This project is licensed under the MIT License.
Dia Mehak AI / ML Developer | Agentic AI Enthusiast
⭐ If you find this project useful, please consider giving it a star!