|
|
преди 3 часа | |
|---|---|---|
| config | преди 3 часа | |
| core | преди 2 дни | |
| data_pipeline | преди 1 седмица | |
| docker | преди 1 месец | |
| foundation | преди 3 дни | |
| server | преди 1 седмица | |
| utils_test | преди 2 дни | |
| views | преди 3 дни | |
| 路桥 | преди 2 седмици | |
| .gitignore | преди 6 дни | |
| Dockerfile | преди 1 месец | |
| README.md | преди 2 седмици | |
| README_deploy.md | преди 1 месец | |
| README_test.md | преди 2 седмици | |
| __init__.py | преди 1 месец | |
| build_graph_app.png | преди 3 седмици | |
| cleanup_logs.bat | преди 1 седмица | |
| core目录重复实现方法梳理报告.md | преди 3 дни | |
| gunicorn_config.py | преди 2 месеца | |
| requirements.txt | преди 1 месец | |
| run.sh | преди 1 месец | |
| test_document.pdf | преди 2 месеца |
### LQAgentPlatform 智能体应用服务
后端启动服务
gunicorn -c gunicorn_config.py server.app:app 多进程启动
python .\views\construction_review\app.py
pip install aioredis -i https://mirrors.aliyun.com/pypi/simple/ pip install langgraph-checkpoint-postgres -i https://mirrors.aliyun.com/pypi/simple/ pip install langchain-redis -i https://mirrors.aliyun.com/pypi/simple/
pip install aiomysql -i https://mirrors.aliyun.com/pypi/simple/
cd LQAgentPlatform python foundation/models/silicon_flow.py
#### 生成模型接口
- chat
http://localhost:8001/test/generate/chat
{
"config": {
"session_id":"111"
},
"input": "你好"
}
- stream
http://localhost:8001/test/generate/stream
{
"config": {
"session_id":"111"
},
"input": "你好,我叫小红,你叫什么?"
}
#### agent 智能体
- chat
http://localhost:8001/test/agent/stream
{
"config": {
"session_id":"111"
},
"input": "你好"
}
- stream
curl -X POST "http://localhost:8001/test/agent/stream" \ -H "Content-Type: application/json" \ -d '{
"config": {
"session_id": "111"
},
"input": "你好"
}'
#### Workflow-Graph stream
- chat
http://localhost:8001/test/graph/stream
{
"config": {
"session_id":"111"
},
"input": "你好"
}
- agent
http://localhost:8001/test/graph/stream
{
"config": {
"session_id":"111"
},
"input": "查询信息"
}
新增
http://localhost:8001/test/mysql/add
{
"config": {
"session_id":"10002"
},
"input": "张三"
}
查询列表 http://localhost:8001/test/mysql/list { "config": {
"session_id":"10002"
}, "input": "张三" }
查询单个 http://localhost:8001/test/mysql/get { "config": { "session_id":"10002" }, "input": "4" }
修改 http://localhost:8001/test/mysql/update { "config": { "session_id":"1" }, "input": "李四" }
向量检索测试 http://localhost:8001/test/bfp/search { "config": {
"session_id":"20"
}, "input": "安全生产条件" }
向量检索和重排序测试