An AI-powered autonomous research platform that automatically plans, searches, analyzes, and generates comprehensive academic research papers using a local LLM, eliminating cloud AI API costs.
OpenDeepResearcher is a full-stack AI research assistant that mimics the workflow of a human researcher. Given any research topic, it automatically breaks the problem into sub-questions, searches the web, synthesizes information, evaluates research completeness, and produces a professional academic research paper.
The application is powered by a local Large Language Model (LLM) running through LM Studio, allowing users to perform advanced AI-powered research without paying for cloud AI APIs. The backend is built with FastAPI and LangGraph, while the frontend is developed using React and Vite, providing a fast and interactive user experience.
- π€ Autonomous Multi-Agent Research Pipeline
- π§ Local LLM Integration using LM Studio
- π Real-time DuckDuckGo Web Search
- π LangGraph-based Agent Workflow
- π‘ Live Progress Updates using Server-Sent Events (SSE)
- π Automatic Academic Research Report Generation
- π Export Reports as PDF
- π Export Reports as PowerPoint (PPTX)
- π¬ Follow-up Question Answering
- π€ Voice Input Support
- π Retrieval-Augmented Generation (RAG)
- π Document Upload and Search
- π Dark & Light Theme
- π Session History
- π± Responsive Modern Interface
User
β
βΌ
React Frontend
(Vite + React)
β
HTTP / SSE Requests
β
βΌ
FastAPI Backend
(server.py)
β
βΌ
βββββββββββββββββββββββββββββ
β LangGraph Workflow β
β β
β Planner β
β β β
β βΌ β
β Searcher β
β β β
β βΌ β
β Writer β
β β β
β βΌ β
β Reflection ββββββββββ β
β β β β
β βββ Continue? βββ β
β β β
β βΌ β
β Reporter β
βββββββββββββββββββββββββββββ
β
βββββββββββββΌββββββββββββββ
β β β
βΌ βΌ βΌ
PDF Export PPT Export Follow-up Q&A
β
βΌ
Final Research Report
External Services Used
ββββββββββββββββββββββββββββββ
β LM Studio (Local LLM) β
β DuckDuckGo Search (DDGS) β
β RAG Document Store β
ββββββββββββββββββββββββββββββ
- React 18
- Vite
- React Markdown
- CSS Modules
- Python 3.12
- FastAPI
- Uvicorn
- LangGraph
- LangChain
- LangChain OpenAI
- LM Studio
- Qwen2.5-3B-Instruct
- OpenAI Compatible API
- DuckDuckGo Search (DDGS)
- ReportLab
- python-pptx
- PyPDF2
- python-dotenv
Breaks the research topic into focused sub-questions to create a structured research plan.
Retrieves real-time information using DuckDuckGo and searches uploaded RAG documents when available.
Summarizes search results into coherent research notes while continuously improving the report.
Evaluates whether sufficient information has been collected or another research iteration is required.
Generates a polished academic research paper containing:
- Title
- Abstract
- Introduction
- Key Findings
- Applications
- Challenges
- Future Outlook
- Conclusion
- References
OpenDeepResearcher/
β
βββ agents/
β βββ planner.py
β βββ searcher.py
β βββ writer.py
β βββ reflection.py
β βββ reporter.py
β
βββ frontend/
β
βββ utils/
β βββ llm_client.py
β βββ pdf_export.py
β βββ pptx_export.py
β βββ rag.py
β βββ state.py
β
βββ data/
β
βββ graph.py
βββ server.py
βββ config.py
βββ requirements.txt
βββ .env
| Endpoint | Method | Description |
|---|---|---|
/research |
POST | Generate complete research report |
/research/stream |
POST | Stream research progress |
/followup |
POST | Ask questions about the generated report |
/export/pdf |
POST | Download report as PDF |
/export/pptx |
POST | Download report as PowerPoint |
/rag/upload |
POST | Upload documents for RAG |
/rag/search |
POST | Search uploaded documents |
/health |
GET | Server health check |
git clone https://github.com/yourusername/OpenDeepResearcher.git
cd OpenDeepResearcherpip install -r requirements.txtcd frontend
npm installCreate a .env file:
LLM_BASE_URL=http://localhost:1234/v1
LLM_API_KEY=lm-studio
LLM_MODEL_NAME=qwen2.5-3b-instruct
MAX_SEARCH_RESULTS=5
MAX_RESEARCH_LOOPS=2
APP_HOST=0.0.0.0
APP_PORT=8000- Load your preferred LLM
- Start the Local Server
python server.pycd frontend
npm run devOpen your browser:
http://localhost:5173
---
# Future Improvements
- Multiple LLM Support
- Google Scholar Integration
- Citation Quality Evaluation
- Research Mind Maps
- Docker Deployment
- Cloud Deployment
- Collaborative Research Sessions
- Advanced Semantic Search
---
# Why OpenDeepResearcher?
- Runs entirely on a local LLM
- No AI API costs
- Autonomous multi-agent workflow
- Real-time research progress
- Retrieval-Augmented Generation (RAG)
- Modern responsive UI
- Professional PDF and PPT exports
- Interactive follow-up Q&A
---
# Author
Shreeya Bhalwatkar
β If you found this project useful, consider giving it a Star!