|
|
пре 3 месеци | |
|---|---|---|
| config | пре 3 месеци | |
| core | пре 3 месеци | |
| data_pipeline | пре 3 месеци | |
| database | пре 3 месеци | |
| foundation | пре 3 месеци | |
| server | пре 3 месеци | |
| temp | пре 3 месеци | |
| test | пре 3 месеци | |
| views | пре 3 месеци | |
| .gitignore | пре 3 месеци | |
| Dockerfile | пре 4 месеци | |
| README.md | пре 3 месеци | |
| gunicorn_config.py | пре 4 месеци | |
| requirements.txt | пре 3 месеци | |
| run.sh | пре 4 месеци | |
| test_document.pdf | пре 3 месеци |
### LQAgentPlatform 智能体应用服务
后端启动服务
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/
#### 生成模型接口
- 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": "查询信息"
}