README.md 2.4 KB

LQDataGovernance 数据治理服务

#### 环境安装

  • pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

    后端启动服务

    • cd LQDataGovernance
    • uvicorn server.app:app --port=8010 --host=0.0.0.0
    • gunicorn -c gunicorn_config.py server.app:app 多进程启动

pip install pdfplumber -i https://mirrors.aliyun.com/pypi/simple/

文档处理

pip install PyPDF2 python-docx langchain-text-splitter -i https://mirrors.aliyun.com/pypi/simple/

### PostgreSQL 数据库操作测试

sentence-transformers

pip install psycopg2-binary pgvector -i https://mirrors.aliyun.com/pypi/simple/
pip install pymilvus sentence-transformers 

向量数据库 milvus

测试接口

#### 生成模型接口

- chat
    http://localhost:8010/test/data/governance
 {
  "config": {
      "session_id":"222"
  },
  "input": "本项目共设3个预制场:1#预制场位于连接线LK5+600填方区,负责70片T梁预制;2#预制场位于A匝道AK0+273挖方路基,负责555片T梁;3#预制场位于E匝道EK0+000挖方区,负责144片T梁。各预制场均配备龙门吊、型钢台座、智能喷淋养护系统等设备,满足不同梁型的预制需求。"
}

{\n  \"system\": \"你是一个施工方案业务编写专家!\",\n  \"instruction\": \"请根据提供的预制场信息,总结各预制场的分布及主要任务。\",\n  \"input\": \"本项目共设3个预制场:1#预制场位于连接线LK5+600填方区,负责70片T梁预制;2#预制场位于A匝道AK0+273挖方路基,负责555片T梁;3#预制场位于E匝道EK0+000挖方区,负责144片T梁。各预制场均配备龙门吊、型钢台座、智能喷淋养护系统等设备,满足不同梁型的预制需求。\",\n  \"output\": \"本项目共设置3个预制场:\\n1. 1#预制场位于连接线LK5+600填方区,主要负责70片T梁的预制;\\n2. 2#预制场位于A匝道AK0+273挖方路基,主要负责555片T梁的预制;\\n3. 3#预制场位于E匝道EK0+000挖方区,主要负责144片T梁的预制。\\n各预制场均配备了龙门吊、型钢台座和智能喷淋养护系统等设备,能够满足不同梁型的预制需求。\"\n}