Skip to main content

An AI-powered deep research agent for autonomous web research

Project description

Deep Research Agent

PyPI version License: MIT

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

  1. Query Generation: Creates effective search queries based on the topic and current knowledge
  2. Web Search: Retrieves search results from DuckDuckGo
  3. Content Scraping: Extracts and cleans content from web pages
  4. Summary Generation: Integrates new information with existing knowledge
  5. Reflection: Identifies gaps and contradictions to guide further research
  6. Report Generation: Creates a comprehensive final report

License

MIT License - see LICENSE file for details.

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_agent-0.1.0.tar.gz (11.7 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_agent-0.1.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file deep_research_agent-0.1.0.tar.gz.

File metadata

  • Download URL: deep_research_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for deep_research_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1aed327a713757851e1c0f498a10d74af964d45640a849fd82cb2198c8d65bf4
MD5 a08b0f38df09949e5e8165eaaa6158f9
BLAKE2b-256 a08966722ce5b314ca32d56633ac6b4c5ddff61c99b1ceab5bb77df5a14b8d99

See more details on using hashes here.

File details

Details for the file deep_research_agent-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for deep_research_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c92b854300a587ef22771be6bbb24b994e835327ee877fbe32d9e28c11e11dfa
MD5 e077c9fe515fe019b88b3cd18b50012a
BLAKE2b-256 b015042d84439bc148d718df25b8b4713f2af965c44376d1e02519ed59f32616

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