🦜️🔗 LangReact
⚡ 用 Planning Agent 来优化的大模型应用 ⚡ ⚡ Build your LLM Application based on planning agent ⚡
🤔 What is LangReact?
LangReact 是一个配置化的 Planning Agent 应用开发工具,通过配置和插件能快速为你的 GPT 应用提供 Planning 能力。
- 配置化: 通过 configure 快速构建你的 Planning Agent,无需对你的 AI 应用代码做任何更改
- 插件化: 通过引入各种各样的工具插件,让你的 AI 应用快速具备使用工具的能力
- 多种 Planning Agent 实现: 通过配置开启多种 Planning 功能:COT、Memory RAG、TOT、Reflection 等
usage
install
pip install langreact
build your application
参考 demo 目录中的 create_a_chatbot.py 创建一个 COT Planning 辅助的聊天机器人
执行这个 demo:
DASHSCOPE_API_KEY=XXXX python3 -m demo.create_a_chatbot
创建和使用一个应用的基本流程:
- 继承 ApplicationPlugin 创建一个自己的 LLM 应用
- 从 demo 中拷贝 default.py 来创建一个新的应用配置文件,例如 demo/qwen_chat_configure.py
- 修改配置中的 MEMORY_INDEX_URI 来引入你的日志 RAG 索引,如果仅仅测试可以执行 demo/simple_milvus_server 中的 start_default_server 方法,创建一个临时的索引
- (可选)根据需要修改配置中的 PROMPT 来定制你自己的 planning agent
- 通过 Flow 创建应用的数据流,赋予你的 LLM 应用 Planning 能力
- 通过 Flow.invoke 来调用你的 LLM 应用
RoadMap
- 提供 LangChain 应用装饰器,方便 LangChain 应用转换
- 提供插件市场,并支持基于插件评分 Reranker
- 提供 AI 数字人应用模版
Contact
Metadata
Release files for langreact 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langreact-0.3.1.tar.gz | 22.7 kB | Without provenance | Details for langreact-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langreact-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for langreact-0.3.1-py3-none-any.whl |
Total release size: 54.3 kB
Release files / langreact-0.3.1.tar.gz
| Download URL | langreact-0.3.1.tar.gz |
|---|---|
| Size | 22.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eacf00e22e61f8dfb0a9c95afc32358335ead20f7c0bfec15c5e30ee8215b415
|
|
BLAKE2b-256 checksum How to use checksums |
590e9e0b873b7880f65a8214cc077991fb8e39f462af079066a8951560d9407d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.5 Darwin/21.1.0
|
Release files / langreact-0.3.1-py3-none-any.whl
| Download URL | langreact-0.3.1-py3-none-any.whl |
|---|---|
| Size | 31.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4d681cf3bec9ca942074d4ee88eb80e6bc37c8cde697c3ede1f8668e8c142ca
|
|
BLAKE2b-256 checksum How to use checksums |
157b6cb12fa12df820f6344331518aa8a088cb08074e40adad0fb7efed69c42b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.5 Darwin/21.1.0
|
Security for langreact 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.