Skip to content

Commit 1942cb0

Browse files
authored
perf: btn color (#423)
1 parent bf6dbfb commit 1942cb0

File tree

41 files changed

+350
-221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+350
-221
lines changed
File renamed without changes.

docSite/assets/imgs/getfile_id.png

793 KB
Loading

docSite/content/docs/development/openApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ data: [{"moduleName":"KB Search","price":1.2000000000000002,"model":"Embedding-2
225225
此部分 API 需使用全局通用的 API Key。
226226
{{% /alert %}}
227227

228-
| 如何获取知识库ID(kbId| 如何获取文件ID(file_id) |
228+
| 如何获取知识库ID(datasetId| 如何获取文件ID(file_id) |
229229
| --------------------- | --------------------- |
230-
| ![](/imgs/getKbId.png) | ![](/imgs/getfile_id.png) |
230+
| ![](/imgs/getDatasetId.png) | ![](/imgs/getfile_id.png) |
231231

232232

233233
### 知识库添加数据
@@ -241,7 +241,7 @@ curl --location --request POST 'https://fastgpt.run/api/core/dataset/data/pushDa
241241
--header 'Authorization: Bearer apikey' \
242242
--header 'Content-Type: application/json' \
243243
--data-raw '{
244-
    "kbId": "64663f451ba1676dbdef0499",
244+
    "collectionId": "64663f451ba1676dbdef0499",
245245
"mode": "index",
246246
"prompt": "qa 拆分引导词,index 模式下可以忽略",
247247
"billId": "可选。如果有这个值,本次的数据会被聚合到一个订单中,这个值可以重复使用。可以参考 [创建训练订单] 获取该值。",
@@ -268,7 +268,7 @@ curl --location --request POST 'https://fastgpt.run/api/core/dataset/data/pushDa
268268

269269
```json
270270
{
271-
"kbId": "知识库的ID,可以在知识库详情查看。",
271+
"collectionId": "文件的ID,参考上面的第二张图",
272272
"mode": "index | qa ", // index 模式: 直接将 q 转成向量存起来,a 直接入库。qa 模式: 只关注 data 里的 q,将 q 丢给大模型,让其根据 prompt 拆分成 qa 问答对。
273273
"prompt": "拆分提示词,需严格按照模板,建议不要传入。",
274274
"data": [
@@ -351,7 +351,7 @@ curl --location --request POST 'https://fastgpt.run/api/core/dataset/searchTest'
351351
--header 'Authorization: Bearer apiKey' \
352352
--header 'Content-Type: application/json' \
353353
--data-raw '{
354-
"kbId": "xxxxx",
354+
"datasetId": "知识库的ID",
355355
"text": "导演是谁"
356356
}'
357357
```

docSite/content/docs/installation/upgrading/45.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ ALTER EXTENSION vector UPDATE;
2929
alter system set maintenance_work_mem = '2400MB';
3030
select pg_reload_conf();
3131

32+
-- 重构数据库索引和排序
33+
REINDEX DATABASE postgres;
34+
ALTER DATABASE postgres REFRESH COLLATION VERSION;
35+
3236
-- 开始构建索引,该索引构建时间非常久,直接点击右上角的叉,退出 Terminal 即可
3337
CREATE INDEX CONCURRENTLY vector_index ON modeldata USING hnsw (vector vector_ip_ops) WITH (m = 16, ef_construction = 64);
3438
-- 可以再次点击一键链接,进入 Terminal,输入下方命令,如果看到 "vector_index" hnsw (vector vector_ip_ops) WITH (m='16', ef_construction='64') 则代表构建完成(注意,后面没有 INVALID)

docSite/content/docs/installation/upgrading/451.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ curl --location --request POST 'https://{{host}}/api/admin/initv451' \
3232

3333
1. 新增知识库文件夹管理
3434
2. 修复了 openai4.x sdk 无法兼容 oneapi 的智谱和阿里的接口。
35-
35+
3. 修复部分模块无法触发完成事件

projects/app/public/locales/en/common.json

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
"UnKnow": "UnKnow",
1515
"Warning": "Warning",
1616
"app": {
17+
"AI Advanced Settings": "Advanced Settings",
1718
"AI Settings": "AI Settings",
1819
"Advance App TestTip": "The current application is advanced editing mode \n. If you need to switch to [simple mode], please click the save button on the left",
1920
"App Detail": "App Detail",
21+
"Basic Settings": "Basic Settings",
22+
"Chat Debug": "Chat Debug",
2023
"Chat Logs Tips": "Logs record the app's online, shared, and API(chatId is existing) conversations",
2124
"Chat logs": "Chat Logs",
2225
"Confirm Del App Tip": "Confirm to delete the app and all its chats",
@@ -38,6 +41,7 @@
3841
"Logs Title": "Title",
3942
"Mark Count": "Mark Count",
4043
"My Apps": "My Apps",
44+
"Open AI Advanced Settings": "Advanced Settings",
4145
"Output Field Settings": "Output Field Settings",
4246
"Paste Config": "Paste Config",
4347
"Variable Key Repeat Tip": "Variable Key Repeat",
@@ -106,6 +110,7 @@
106110
},
107111
"common": {
108112
"Add": "Add",
113+
"Choose": "Choose",
109114
"Close": "Clow",
110115
"Collect": "Collect",
111116
"Confirm Move": "Move here",
@@ -131,6 +136,7 @@
131136
"Name is empty": "Name is empty",
132137
"Next Step": "Next",
133138
"Output": "Output",
139+
"Params": "Params",
134140
"Password inconsistency": "Password inconsistency",
135141
"Rename": "Rename",
136142
"Rename Failed": "Rename Failed",
@@ -151,10 +157,30 @@
151157
"folder": {
152158
"Drag Tip": "Click and move",
153159
"Move Success": "Move Success",
154-
"No Folder": "No Folder",
160+
"No Folder": "There's no subdirectory. Just put it here",
155161
"Root Path": "Root Folder"
156162
}
157163
},
164+
"core": {
165+
"ai": {
166+
"Model": "Model",
167+
"Prompt": "Prompt"
168+
},
169+
"app": {
170+
"Next Step Guide": "Next step guide"
171+
},
172+
"chat": {
173+
"Restart": "Restart"
174+
},
175+
"dataset": {
176+
"Choose Dataset": "Chookse Dataset",
177+
"Dataset": "Dataset",
178+
"Read Dataset": "Read Dataset",
179+
"Search Top K": "Top K",
180+
"Set Empty Result Tip": ",Response empty text",
181+
"Similarity": "Similarity"
182+
}
183+
},
158184
"dataset": {
159185
"Chunk Length": "Chunk Length",
160186
"Confirm move the folder": "Confirm Move",
@@ -189,6 +215,7 @@
189215
"Click to view folder": "To Folder",
190216
"Collection Embedding": "{{total}}Embedding",
191217
"Confirm to delete the folder": "Are you sure to delete this folder and all its contents?",
218+
"Create And Import": "Create/Import",
192219
"Create Training Data": "Training-{{filename}}",
193220
"Create Virtual File Success": "Create Virtual File Success",
194221
"Data Amount": "Data Amount",
@@ -208,7 +235,7 @@
208235
"deleteFolderTips": "Are you sure to delete this folder and all the knowledge bases it contains? Data cannot be recovered after deletion, please confirm!"
209236
},
210237
"file": {
211-
"Click to download CSV template": "Click to download CSV template",
238+
"Click to download file template": "Download Template: {{name}}",
212239
"Click to view file": "Click to view file",
213240
"Create File": "Create File",
214241
"Create file": "Create file",

projects/app/public/locales/zh/common.json

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
"UnKnow": "未知",
1515
"Warning": "提示",
1616
"app": {
17-
"AI Settings": "AI 高级配置",
17+
"AI Advanced Settings": "AI 高级配置",
18+
"AI Settings": "AI 配置",
1819
"Advance App TestTip": "当前应用为高级编排模式\n如需切换为【简易模式】请点击左侧保存按键",
1920
"App Detail": "应用详情",
21+
"Basic Settings": "基本信息",
22+
"Chat Debug": "调试预览",
2023
"Chat Logs Tips": "日志会记录该应用的在线、分享和 API(需填写 chatId) 对话记录",
2124
"Chat logs": "对话日志",
2225
"Confirm Del App Tip": "确认删除该应用及其所有聊天记录?",
@@ -38,6 +41,7 @@
3841
"Logs Title": "标题",
3942
"Mark Count": "标注答案数量",
4043
"My Apps": "我的应用",
44+
"Open AI Advanced Settings": "高级配置",
4145
"Output Field Settings": "输出字段编辑",
4246
"Paste Config": "粘贴配置",
4347
"Variable Key Repeat Tip": "变量 key 重复",
@@ -106,6 +110,7 @@
106110
},
107111
"common": {
108112
"Add": "添加",
113+
"Choose": "选择",
109114
"Close": "关闭",
110115
"Collect": "收藏",
111116
"Confirm Move": "移动到这",
@@ -131,6 +136,7 @@
131136
"Name is empty": "名称不能为空",
132137
"Next Step": "下一步",
133138
"Output": "输出",
139+
"Params": "参数",
134140
"Password inconsistency": "两次密码不一致",
135141
"Rename": "重命名",
136142
"Rename Failed": "重命名失败",
@@ -151,10 +157,30 @@
151157
"folder": {
152158
"Drag Tip": "点我可拖动",
153159
"Move Success": "移动成功",
154-
"No Folder": "这个目录空空的~",
160+
"No Folder": "没有子目录了,就放这里吧",
155161
"Root Path": "根目录"
156162
}
157163
},
164+
"core": {
165+
"ai": {
166+
"Model": "AI 模型",
167+
"Prompt": "提示词"
168+
},
169+
"app": {
170+
"Next Step Guide": "下一步指引"
171+
},
172+
"chat": {
173+
"Restart": "重开对话"
174+
},
175+
"dataset": {
176+
"Choose Dataset": "关联知识库",
177+
"Dataset": "知识库",
178+
"Read Dataset": "查看知识库详情",
179+
"Search Top K": "单次搜索数量",
180+
"Set Empty Result Tip": ",未搜索到内容时回复指定内容",
181+
"Similarity": "相似度"
182+
}
183+
},
158184
"dataset": {
159185
"Chunk Length": "数据总量",
160186
"Confirm move the folder": "确认移动到该目录",
@@ -189,6 +215,7 @@
189215
"Click to view folder": "进入目录",
190216
"Collection Embedding": "{{total}}组索引中",
191217
"Confirm to delete the folder": "确认删除该文件夹及里面所有内容?",
218+
"Create And Import": "新建/导入",
192219
"Create Training Data": "文件训练-{{filename}}",
193220
"Create Virtual File Success": "创建虚拟文件成功",
194221
"Data Amount": "数据总量",
@@ -208,7 +235,7 @@
208235
"deleteFolderTips": "确认删除该文件夹及其包含的所有知识库?删除后数据无法恢复,请确认!"
209236
},
210237
"file": {
211-
"Click to download CSV template": "点击下载 CSV 模板",
238+
"Click to download file template": "点击下载模板:{{name}}",
212239
"Click to view file": "点击查看原始文件",
213240
"Create File": "创建新文件",
214241
"Create file": "创建文件",
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

projects/app/src/components/Icon/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ const iconPaths = {
8989
moveLight: () => import('./icons/light/move.svg'),
9090
questionGuide: () => import('./icons/app/questionGuide.svg'),
9191
loading: () => import('./icons/light/loading.svg'),
92-
pause: () => import('./icons/common/pause.svg')
92+
pause: () => import('./icons/common/pause.svg'),
93+
'core/app/aiLight': () => import('./icons/core/app/aiLight.svg'),
94+
'core/app/aiFill': () => import('./icons/core/app/aiFill.svg')
9395
};
9496

9597
export type IconName = keyof typeof iconPaths;

0 commit comments

Comments
 (0)