Skip to main content

Deep research capability for the Ratchet framework

Project description

ratchet-research

Deep research capability for the Ratchet framework.

Install

pip install ratchet-research

What it does

Give your agent a research question. It decomposes it into sub-queries, searches the web, fetches page content, synthesizes everything into a cited report, and stores the result for future retrieval.

from ratchet.research import ResearchModule

# Register with your agent
agent.register(ResearchModule())

# Or use the pipeline directly
from ratchet.research import research
report = research("What are the latest improvements to transformer attention mechanisms?")
print(report.synthesis.summary)

Pipeline

  1. Plan — LLM decomposes question into 3-6 focused sub-queries
  2. Search — Web search via Brave, Serper, or DuckDuckGo (auto-detect)
  3. Fetch — Extract text content from result pages
  4. Synthesize — LLM combines sources into a cited report with confidence rating
  5. Store — Persist to JSONL with TF-IDF vector search for retrieval

Search providers

Set one of these environment variables to use a paid search API:

  • BRAVE_API_KEY — Brave Search (recommended)
  • SERPER_API_KEY — Serper (Google results)

No key? Falls back to DuckDuckGo HTML scraping automatically.

License

MIT

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

ratchet_research-0.1.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

ratchet_research-0.1.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ratchet_research-0.1.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for ratchet_research-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3470607f9bc2b0f3a0ffc83b5b92ea3ce0f27b505cd2c1e280db618b6fc2ccb0
MD5 f497fdb0f296a4f637932eaca9480221
BLAKE2b-256 9c298a5912fdbd27465bb89a317211df0517f62fc5ba54929b11051f42892c22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ratchet_research-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83bb276a6f3b9b57fb5baaeb25c8dfb1db9703c73ea36521aefd3aea5a613139
MD5 c7c7ffcea667307ff3fb95ec500dca59
BLAKE2b-256 97f0dcf72d15c361270c9c42f9ac51fca61bbd7e560d07bcf8b7a4a82aa66cb8

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