Skip to main content

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 of https://github.com/dzhng/deep-research

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

Install directly from GitHub:

pip install git+https://github.com/epuerta0/deep-research-py.git

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:

  1. Enter your research topic
  2. Set research breadth (2-10, default 4)
  3. Set research depth (1-5, default 2)
  4. Answer follow-up questions
  5. 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
python -m venv .venv
source .venv/bin/activate

# Install in development mode
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deep_research_py-0.1.1.tar.gz (101.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deep_research_py-0.1.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file deep_research_py-0.1.1.tar.gz.

File metadata

  • Download URL: deep_research_py-0.1.1.tar.gz
  • Upload date:
  • Size: 101.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for deep_research_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 752c8707a8cfc96270b131f7671b604193797a4567d19d8e0b164418e812adba
MD5 7524c4bf817b7203f1e20efca93982d9
BLAKE2b-256 e343736015e0a7bb2d6ffa5b4659af008e2e7bc327712d4cb0e80e65e96139ea

See more details on using hashes here.

File details

Details for the file deep_research_py-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for deep_research_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 151dcba34989af68be4d73d0695db9064e05bc30be0edf0a76e66f321c1f5e9b
MD5 b5a940f4a6fcf822c532dd27fe1e2541
BLAKE2b-256 964c624ad7fa89d459cae0172d8e5b8cb7662fab6e6e13258e85c273ff4b4d2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page