An AI-powered deep research assistant in python
Project description
🐍 Deep Research Assistant PY
An AI-powered research tool in Python that helps you explore topics in depth using AI and web search.
Save 200 dollars a month and use this tool
⭐ A python port with a little more cli pizzazz of https://github.com/dzhng/deep-research
Contribute all you want to this. It was fun tweaking it.
Project Structure
deep_research_py/
├── run.py # Main CLI interface
├── deep_research.py # Core research logic
├── feedback.py # Follow-up question generation
├── prompt.py # System prompts for AI
└── ai/
├── providers.py # AI service configuration
└── text_splitter.py # Text processing utilities
Features
- Interactive Research: Asks follow-up questions to better understand your needs
- Depth Control: Customize research breadth and depth
- Web Integration: Uses Firecrawl for reliable web content extraction
- Smart Synthesis: Combines multiple sources into coherent findings
- Beautiful CLI: Rich text interface with progress tracking
- Markdown Reports: Generates well-formatted research reports
Installation
uv tool install deep-research-py
Configuration
Set your API keys as environment variables:
# Required: OpenAI API key
export OPENAI_API_KEY=your-openai-key-here
# Required: Firecrawl API key
export FIRECRAWL_KEY=your-firecrawl-key-here
Usage
Run the research assistant:
deep-research
You'll be prompted to:
- Enter your research topic
- Set research breadth (2-10, default 4)
- Set research depth (1-5, default 2)
- Answer follow-up questions
- Wait while it researches and generates a report
Development Setup
Clone the repository and set up your environment:
# Clone the repository
git clone https://github.com/epuerta0/deep-research-py.git
cd deep-research-py
# Create and activate virtual environment
uv venv
source .venv/bin/activate
# Install in development mode
uv pip install -e .
# Set your API keys
export OPENAI_API_KEY=your-openai-key-here
export FIRECRAWL_KEY=your-firecrawl-key-here
# Run the tool
deep-research
Requirements
- Python 3.9 or higher
- OpenAI API key (GPT-4 access recommended)
- Firecrawl API key for web search
- Dependencies:
- openai
- firecrawl-py
- typer
- rich
- prompt-toolkit
- aiohttp
- aiofiles
- tiktoken
Output
The tool generates:
- A markdown report saved as
output.md - List of sources used
- Summary of key findings
- Detailed analysis of the topic
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deep_research_py-0.1.2.tar.gz.
File metadata
- Download URL: deep_research_py-0.1.2.tar.gz
- Upload date:
- Size: 100.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ec21a7266be2a3f18075ada635c32b87d0369f3d866e54d07d851f48f9d9e7d
|
|
| MD5 |
604c7808cd14ec8e6818e177244e01b7
|
|
| BLAKE2b-256 |
581da5a37558eecb7f4badd2d9a8052625dcfa19b461075a556e309ddadbab40
|
File details
Details for the file deep_research_py-0.1.2-py3-none-any.whl.
File metadata
- Download URL: deep_research_py-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e04e83793634b52c7f714f7eb7f0f21868b4110ff1ea4cfe4954dfdf8607ad10
|
|
| MD5 |
b2d415f0dcc77a2599a21acc89166a69
|
|
| BLAKE2b-256 |
e13d172c9d9a039eeab066cca1e2e898495ace0fa6551857da7b1e18f61c04b4
|