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
- Plan — LLM decomposes question into 3-6 focused sub-queries
- Search — Web search via Brave, Serper, or DuckDuckGo (auto-detect)
- Fetch — Extract text content from result pages
- Synthesize — LLM combines sources into a cited report with confidence rating
- 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3470607f9bc2b0f3a0ffc83b5b92ea3ce0f27b505cd2c1e280db618b6fc2ccb0
|
|
| MD5 |
f497fdb0f296a4f637932eaca9480221
|
|
| BLAKE2b-256 |
9c298a5912fdbd27465bb89a317211df0517f62fc5ba54929b11051f42892c22
|
File details
Details for the file ratchet_research-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ratchet_research-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83bb276a6f3b9b57fb5baaeb25c8dfb1db9703c73ea36521aefd3aea5a613139
|
|
| MD5 |
c7c7ffcea667307ff3fb95ec500dca59
|
|
| BLAKE2b-256 |
97f0dcf72d15c361270c9c42f9ac51fca61bbd7e560d07bcf8b7a4a82aa66cb8
|