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
Metadata
Release files for ratchet-research 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ratchet_research-0.1.0.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ratchet_research-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.9 kB
Release files / ratchet_research-0.1.0.tar.gz
| Download URL | ratchet_research-0.1.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3470607f9bc2b0f3a0ffc83b5b92ea3ce0f27b505cd2c1e280db618b6fc2ccb0
|
|
BLAKE2b-256 checksum How to use checksums |
9c298a5912fdbd27465bb89a317211df0517f62fc5ba54929b11051f42892c22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / ratchet_research-0.1.0-py3-none-any.whl
| Download URL | ratchet_research-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83bb276a6f3b9b57fb5baaeb25c8dfb1db9703c73ea36521aefd3aea5a613139
|
|
BLAKE2b-256 checksum How to use checksums |
97f0dcf72d15c361270c9c42f9ac51fca61bbd7e560d07bcf8b7a4a82aa66cb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|