Skip to content
프로젝트

소개

save 200 a month and use deep research right in your terminal. - port of https://github.com/dzhng/deep-research but in python

개발 도구

이 수치를 측정하는 방법

What you can do

  • 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

측정된 스타 증가

in 24h
+1
in 7 days
+1
in 15 days
+1
in 1 month
업데이트 지연

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

🐍 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.

video demo

alt text

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 && cp .env.example .env
playwright install

Docker with OpenWebUI

alt text

If you would rather chat with deep-reasearch with an OpenAI client like OpenWebUI, You can build this project with docker.

docker compose up

The OpenAI endpoint should be set at http://localhost:8000/v1

This can be configured on the OpenWebUI settings -> Connections -> Add connection (api key can be anything)

Configuration

Open .env and replace placeholder values with your actual API keys

Set up environment variables in .env file:

# Required: OpenAI API key
# unless you're using DeepSeek or another OpenAI-compliant API.
OPENAI_API_KEY=your-openai-key-here

# Required: Firecrawl API key
FIRECRAWL_API_KEY=your-firecrawl-key-here
# If you want to use your self-hosted Firecrawl, add the following below:
# FIRECRAWL_BASE_URL="http://localhost:3002"

Note: If you prefer, you can use DeepSeek instead of OpenAI. You can configure it in the .env file by setting the relevant API keys and model. Additionally, ensure that you set DEFAULT_SERVICE to "deepseek" if using DeepSeek or "openai" if using OpenAI.

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

You can change the concurrency level by setting the --concurrency flag (useful if you have a high API rate limit):

deep-research --concurrency 10

You can get a list of available commands:

deep-research --help

Development Setup

Clone the repository and set up your environment:

# Clone the repository
git clone https://github.com/epuerta9/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 .

# Copy environment configuration
cp .env.example .env

# Set your API keys by editing the .env file

# Install playwright dependencies
playwright install

# 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

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Install development dependencies:
pip install pre-commit
pre-commit install
  1. Make your changes
  2. Commit your changes (git commit -m 'Add amazing feature')
  3. Push to the branch (git push origin feature/amazing-feature)
  4. Open a Pull Request

관련 프로젝트 살펴보기

불러오는 중…