Skip to content

Commit

Permalink
g# This is a combination of 6 commits. (#675)
Browse files Browse the repository at this point in the history
perf: node render

perf: react flow performance

config

perf: pg index

perf: oauth login

doc

doc
  • Loading branch information
c121914yu committed Jan 1, 2024
1 parent 9ccfda4 commit d645a74
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 678 deletions.
2 changes: 2 additions & 0 deletions docSite/content/docs/development/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ weight: 708

## 旧版本配置文件

以下配置适合 4.6.6-alpha 之前

```json
{
"SystemParams": {
Expand Down
8 changes: 6 additions & 2 deletions docSite/content/docs/development/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ toc: true
weight: 707
---

## 准备条件
## 推荐配置

服务器要求:2C2G 起
| 环境 | 推荐配置(单节点) |
| ---- | ---- |
| 测试 | 2c2g 起 |
| 100w 组向量 | 4c16g起 |
| 500w 组向量 | 16c64g起 |

### 1. 准备好代理环境(国外服务器可忽略)

Expand Down
10 changes: 6 additions & 4 deletions docSite/content/docs/development/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ weight: 705

- [Git](http://git-scm.com/)
- [Docker](https://www.docker.com/)(构建镜像)
- [Node.js v18.x (LTS)](http://nodejs.org)
- [Node.js v18.x (不推荐最新的,可能有兼容问题)](http://nodejs.org)
- [pnpm](https://pnpm.io/) 版本 8.x.x

## 开始本地开发

**Tips**

1. 用户默认的时区为 `Asia/Shanghai`,非 linux 环境时候,获取系统时间会异常,本地开发时候,可以将用户的时区调整成 UTC(+0)。
2. 建议先服务器装好数据库在进行本地开发
2. 建议先服务器装好**数据库**,再进行本地开发

### 1. Fork 存储库

Expand Down Expand Up @@ -79,11 +79,13 @@ cd projects/app
pnpm dev
```

### 6. 发布 - 镜像打包
### 6. 部署打包

```bash
# 根目录下执行
docker build -t dockername/fastgpt --build-arg name=app .
docker build -t dockername/fastgpt:tag --build-arg name=app .
# 使用代理
docker build -t dockername/fastgpt:tag --build-arg name=app --build-arg proxy=taobao .
```

## 提交代码至开源仓库
Expand Down
2 changes: 1 addition & 1 deletion packages/service/common/vectorStore/pg/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function initPg() {
data_id VARCHAR(50) NOT NULL,
createTime TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX IF NOT EXISTS vector_index ON ${PgDatasetTableName} USING hnsw (vector vector_ip_ops) WITH (m = 32, ef_construction = 64);
CREATE INDEX CONCURRENTLY IF NOT EXISTS vector_index ON ${PgDatasetTableName} USING hnsw (vector vector_ip_ops) WITH (m = 32, ef_construction = 64);
`);

console.log('init pg successful');
Expand Down
3 changes: 2 additions & 1 deletion projects/app/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,8 @@
},
"login": {
"Github": "Github",
"Google": "Google"
"Google": "Google",
"Provider error": "Login exception, please try again"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion projects/app/public/locales/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,8 @@
},
"login": {
"Github": "Github 登录",
"Google": "Google 登录"
"Google": "Google 登录",
"Provider error": "登录异常,请重试"
}
}
},
Expand Down
102 changes: 0 additions & 102 deletions projects/app/src/pages/components/Ability.tsx

This file was deleted.

108 changes: 0 additions & 108 deletions projects/app/src/pages/components/Choice.tsx

This file was deleted.

Loading

0 comments on commit d645a74

Please sign in to comment.