Skip to content

Commit

Permalink
docs:faq (#3627)
Browse files Browse the repository at this point in the history
* docs:faq

* docsFix
  • Loading branch information
Jiangween authored Jan 20, 2025
1 parent 234257a commit 47c5b59
Show file tree
Hide file tree
Showing 11 changed files with 72 additions and 1 deletion.
Binary file added docSite/assets/imgs/dataset3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docSite/assets/imgs/dataset4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docSite/assets/imgs/faq3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docSite/assets/imgs/other1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docSite/assets/imgs/other2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docSite/assets/imgs/other3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docSite/assets/imgs/quizApp2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions docSite/content/zh-cn/docs/development/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,43 @@ images: []
如图
![](/imgs/faq2.png)

### 数据库3306端口被占用了,启动服务失败
![](/imgs/faq3.png)

mysql 只有 oneAPI 用到,外面一般不需要调用,所以可以
- 把 3306:3306 的映射去掉/或者直接改一个映射。

```yaml
# 在 docker-compose.yaml 文件内
# ...
mysql:
image: mysql:8.0.36
ports:
- 3306:3306 # 这个端口被占用了!
# - 3307:3306 # 直接改一个。。和外面的不冲突
# *empty* 或者直接删了,反正外面用不到
oneapi:
container_name: oneapi
image: ghcr.io/songquanpeng/one-api:latest
environment:
- SQL_DSN=root:oneapimmysql@tcp(mysql:3306)/oneapi # 这不用改,容器内外网络是隔离的
```
- 另一种做法是可以直接连现有的 mysql, 要改 oneAPI 的环境变量。
```yaml
# 在 docker-compose.yaml 文件内
# ...
# mysql: # 要连外面的,这个玩意用不到了
# image: mysql:8.0.36
# ports:
# - 3306:3306 # 这个端口被占用了!
oneapi:
container_name: oneapi
image: ghcr.io/songquanpeng/one-api:latest
environment:
- SQL_DSN=root:oneapimmysql@tcp(mysql:3306)/oneapi # 改成外面的链接字符串
```
### 本地部署的限制
具体内容参考https://fael3z0zfze.feishu.cn/wiki/OFpAw8XzAi36Guk8dfucrCKUnjg。
Expand Down
13 changes: 13 additions & 0 deletions docSite/content/zh-cn/docs/faq/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ weight: 908

定时执行会在应用发布后生效,会在后台生效。

## V4.8.18-FIX2中提到“ 1. 修复 HTTP 节点, {{}} 格式引用变量兼容问题。建议尽快替换 / 模式取变量, {{}} 语法已弃用。”替换{{}}引用格式是仅仅只有在http节点,还是所有节点的都会有影响?

只有 http 节点用到这个语法。

## 工作流类型的应用在运行预览可以正常提问返回,但是发布免登录窗口之后有问题。

一般是没正确发布,在工作流右上角点击【保存并发布】。

## 如何解决猜你想问使用中文回答显示

注意需要更新到V4.8.17及以上,把猜你想问的提示词改成中文。
![](/imgs/quizApp2.png)

## AI对话回答要求中的Markdown语法取消

修改知识库默认提示词, 默认用的是标准模板提示词,会要求按 Markdown 输出,可以去除该要求:
Expand Down
11 changes: 11 additions & 0 deletions docSite/content/zh-cn/docs/faq/dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ xlsx等都可以上传的,不止支持CSV。

统一按gpt3.5标准。

## 误删除重排模型后,重排模型怎么加入到fastgpt

![](/imgs/dataset3.png)

config.json文件里面配置后就可以勾选重排模型

## 线上平台上创建了应用和知识库,到期之后如果短期内不续费,数据是否会被清理。

免费版是三十天不登录后清空知识库,应用不会动。其他付费套餐到期后自动切免费版。
![](/imgs/dataset4.png)

## 基于知识库的查询,但是问题相关的答案过多。ai回答到一半就不继续回答。

FastGPT回复长度计算公式:
Expand Down
12 changes: 11 additions & 1 deletion docSite/content/zh-cn/docs/faq/other.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,14 @@ weight: 918

## oneapi 官网是哪个

只有开源的 README,没官网,GitHub: https://github.com/songquanpeng/one-api
只有开源的 README,没官网,GitHub: https://github.com/songquanpeng/one-api

## 想做多用户和多chat key

![](/imgs/other1.png)
![](/imgs/other2.png)

多用户问题:只能采取二开或者商业版

多chat key问题:1. 私有化部署情况下,oneapi解决。2. Saas或者商业版中,可以为每个团队设置单独的key。
![](/imgs/other3.png)

0 comments on commit 47c5b59

Please sign in to comment.