LLM reasoning depth optimizer with visible reasoning chains — see HOW your AI thinks
Project description
reasonchain 🧠
让AI的思考过程变得可见。
不只是另一个prompt模板——reasonchain 把LLM的黑盒回答变成结构化的推理链。
为什么用 reasonchain?
LLM给你答案,但不告诉你为什么这么想。reasonchain 补上这一环:
❌ 普通方式: "AI会取代部分程序员工作"
✅ reasonchain:
├─ 假设A: 取代重复性编码 (置信度85% | 支持: GitHub Copilot数据)
├─ 假设B: 不会取代系统设计 (置信度70% | 反对: 需要领域知识)
├─ 工程角度: 当前AI在创造性任务上仍有盲区
├─ 经济角度: 需求增长 > 被替代的速度
└─ 结论: 部分替代,整体增强 (置信度75%)
安装
pip install reasonchain
5秒上手
from reasonchain import think
# 分析任何问题
chain = think("微服务 vs 单体架构,选哪个?")
print(chain.to_markdown())
# 结合LLM回答深化分析
import openai
response = openai.ChatCompletion.create(
model="gpt-4",
messages=[{"role": "user", "content": "微服务 vs 单体架构"}]
)
chain = think("微服务 vs 单体架构", response.choices[0].message.content)
print(chain.to_markdown())
# 输出包含: 问题分解 + 假设对比表 + 多角度分析 + 结论
功能
- ✅ 推理链可视化 — 把LLM回答解析为结构化推理过程
- ✅ 假设对比 — 并列展示多个假设,标注证据和置信度
- ✅ 多角度分析 — 自动检测工程/经济/伦理等维度
- ✅ 冲突标注 — 标记未解决的推理矛盾
- ✅ LLM增强 — 注入第一性原理推理框架到API调用
MIT License
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
reasonlyze-0.5.0.tar.gz
(5.5 kB
view details)
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 reasonlyze-0.5.0.tar.gz.
File metadata
- Download URL: reasonlyze-0.5.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cef335825b9a2bdd73f49f7a24c1708755ab84735d22ce5f0489d6d3f79e6346
|
|
| MD5 |
6614bbf57fc36abc7eb62f94021a8bc4
|
|
| BLAKE2b-256 |
e4ab8db116ab7d561e16e6c3e0c6b8c76fff9cc5dcc706cc821ebc2a33a30b46
|
File details
Details for the file reasonlyze-0.5.0-py3-none-any.whl.
File metadata
- Download URL: reasonlyze-0.5.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5b3b8caed90e3f287d9141a0653a515b191bdcfafe90d1fc0daff0cb325d91a
|
|
| MD5 |
4ef225727c4e4f422de5644495512928
|
|
| BLAKE2b-256 |
b84d23548c1b53ca2e2239e1d562a8313ece99337987cc7a48036db05b4e3dbc
|