Updated 服务部署与启动 (markdown)

LXW
2023-09-12 10:57:49 +08:00
parent 7fe4eb782b
commit b13a136075
2 changed files with 27 additions and 76 deletions

@@ -1,76 +0,0 @@
### 1. 环境依赖
**Python 服务** (如果需要用到LLM的能力, 需要启动python服务)
     Python版本: 3.9+
     pip版本: 3.9+
其它需要用到的包(启动服务的时候, 会默认检测安装):
langchain==0.0.207 openai==0.27.4 fastapi==0.95.1
chromadb==0.3.21 tiktoken==0.3.3 uvicorn[standard]==0.21.1
pandas==1.5.3
注意事项:
1. 前往supersonic/chat/core/src/main/python/llm/run_config.py配置LLM key
2. 如果是windows环境, 需要把python pip指令配置到环境变量
3. 默认python路径为/usr/local/bin/python3.9, 若不在这个路径,需要在supersonic/chat/core/src/main/python/bin/env.sh修改成自己的路径
**后端服务**
     JDK版本: 1.8+
**前端服务**
     [Node](https://nodejs.org/)版本: 16+
     [pnpm](https://pnpm.io/)
### 2. 服务启动
**Mac 环境**
* release包启动
1. 下载最新release包
2. bin/start-standalone.sh
3. http://localhost:9080/
* ide启动
1. 执行./build_ide.sh
2. IDE启动StandaloneLauncher
3. 浏览器输入http://localhost:9080
* 源码启动
1. bin/build-standalone.sh
2. bin/start-standalone.sh
3. 浏览器输入http://localhost:9080
**Windows 环境**
* release包启动
1. 下载最新release包
2. bin/start-standalone.bat
3. http://localhost:9080/
* ide启动
1. 执行./build_ide.bat
2. IDE启动StandaloneLauncher
3. 浏览器输入http://localhost:9080
* 源码启动
1. bin/build-standalone.bat
2. bin/start-standalone.bat
3. 浏览器输入http://localhost:9080
**Ubuntu 环境**
同mac环境, 若出现报错, 可尝试https://support.huaweicloud.com/intl/zh-cn/deployman_faq/deployman_faq_1016.html
### 3. 数据准备
     默认系统自带H2数据库, 并已初始化好demo数据
     如需要连接自己的MySQL数据库, 请更改launchers/standalone下application-local.yaml数据库配置,
并执行schema-mysql.sql初始化mysql表结构

27
环境依赖.md Normal file

@@ -0,0 +1,27 @@
**Python 服务** (如果需要用到LLM的能力, 需要启动python服务)
     Python版本: 3.9+
     pip版本: 3.9+
其它需要用到的包(启动服务的时候, 会默认检测安装):
langchain==0.0.207 openai==0.27.4 fastapi==0.95.1
chromadb==0.3.21 tiktoken==0.3.3 uvicorn[standard]==0.21.1
pandas==1.5.3
注意事项:
1. 前往supersonic/chat/core/src/main/python/llm/run_config.py配置LLM key
2. 如果是windows环境, 需要把python pip指令配置到环境变量
3. 默认python路径为/usr/local/bin/python3.9, 若不在这个路径,需要在supersonic/chat/core/src/main/python/bin/env.sh修改成自己的路径
**后端服务**
     JDK版本: 1.8+
**前端服务**
     [Node](https://nodejs.org/)版本: 16+
     [pnpm](https://pnpm.io/)