Deep Research Agent
An AI-powered research agent that autonomously searches the web, analyzes content, and generates comprehensive research reports on any topic.
Features
- Automated Web Research: Generate search queries, scrape content, and synthesize information
- Multi-cycle Research: Progressively build deeper understanding with multiple research cycles
- Reflective Analysis: Identify knowledge gaps and areas for further exploration
- Structured Reports: Generate well-organized markdown reports with clear sections
- Multiple Interfaces: Use via command line, Python API, or Streamlit web UI
Installation
pip install deep-research-agent
Usage
Command Line
deep-research --topic "Your research topic" --cycles 2 --output report.md
Streamlit UI
deep-research-ui
Then open your browser to the URL shown (typically http://localhost:8501).
Python API
from deep_research_agent import ResearchConfig, ResearchController
# Configure research parameters
config = ResearchConfig(
topic="Your research topic",
max_research_cycles=2,
max_search_results_per_query=5,
max_urls_to_scrape_per_cycle=3
)
# Initialize and run the research controller
controller = ResearchController(config)
results = controller.run_full_research()
# Access the final report
print(results["final_report"])
Requirements
- Python 3.9+
- Local LLM (Ollama with QwQ model recommended)
Environment Configuration
Create a .env file with:
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=qwq
How It Works
- Query Generation: Creates effective search queries based on the topic and current knowledge
- Web Search: Retrieves search results from DuckDuckGo
- Content Scraping: Extracts and cleans content from web pages
- Summary Generation: Integrates new information with existing knowledge
- Reflection: Identifies gaps and contradictions to guide further research
- Report Generation: Creates a comprehensive final report
License
MIT License - see LICENSE file for details.
Metadata
Release files for deep-research-agent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deep_research_agent-0.1.0.tar.gz | 11.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deep_research_agent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.9 kB
Release files / deep_research_agent-0.1.0.tar.gz
| Download URL | deep_research_agent-0.1.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1aed327a713757851e1c0f498a10d74af964d45640a849fd82cb2198c8d65bf4
|
|
BLAKE2b-256 checksum How to use checksums |
a08966722ce5b314ca32d56633ac6b4c5ddff61c99b1ceab5bb77df5a14b8d99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / deep_research_agent-0.1.0-py3-none-any.whl
| Download URL | deep_research_agent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c92b854300a587ef22771be6bbb24b994e835327ee877fbe32d9e28c11e11dfa
|
|
BLAKE2b-256 checksum How to use checksums |
b015042d84439bc148d718df25b8b4713f2af965c44376d1e02519ed59f32616
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|