query-intel
Query rewriting + retrieval gating + outline-first synthesis. Use when a question needs decomposition (Step-Back/Least-to-Most), retrieve-or-skip decisions (CRAG/Self-RAG gates), or multi-source reports (STORM outline-first). Feeds breakthrough-finder stages plan/expand/synthesize.
Query Intel
Question → better questions → gated retrieval → outline → cited report.
Commands (intel.py, stdlib)
python intel.py stepback "<question>" # principle + sub-questions
python intel.py decompose "<question>" # least-to-most ordered steps
python intel.py gate "<query>" --conf X # retrieve|skip + reason
python intel.py outline "<topic>" --slots # outline w/ breakthrough slots
Rules
- Rewriters are retriever-specific: lexical expansion → BM25, hypothetical-doc → dense. One universal rewriter fails (RL-QR).
- Skip retrieval when confident AND answer is stable knowledge (Self-RAG/FLARE gate) — cuts poisoned/noisy exposure.
- Outline-first always for reports: contradiction / vacancy / method-transfer / hostile-evidence slots before any prose.
- Downloads
- 271All time
- Security audit
- Pass
- Last updated
- 1mo ago
- Current version
- v1.0.0
- License
- MIT-0
