-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.go
85 lines (62 loc) · 2.06 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Copyright (c) 2025 minRAG Authors.
//
// This file is part of minRAG.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses>.
package main
const (
// 默认名称
appName = "minrag"
// 基本目录
datadir = "minragdatadir/"
// 数据目录,如果不存在认为是第一次安装启动,会创建默认的数据
sqliteDBfile = datadir + "minrag.db"
// config 配置的表名称
tableConfigName = "config"
// user 用户的表名称
tableUserName = "user"
// site 站点信息
tableSiteName = "site"
// 知识库 knowledgeBase
tableKnowledgeBaseName = "knowledgeBase"
// 文档
tableDocumentName = "document"
// 文档分块
tableDocumentChunkName = "document_chunk"
// 向量化的数据表
tableVecDocumentChunkName = "vec_document_chunk"
// 组件表
tableComponentName = "component"
// 智能体
tableAgentName = "agent"
// 聊天室
tableChatRoomName = "chat_room"
// 消息日志
tableMessageLogName = "message_log"
//---------------------------//
// 模板的路径
templateDir = datadir + "template/"
// 主题的路径
themeDir = templateDir + "theme/"
// 静态化文件目录,网站生成的静态html
staticHtmlDir = datadir + "statichtml/"
tokenUserId = "userId"
letters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
userTypeKey = "userType" //0访客,1管理员
defaultPageSize = 10
// 静态文件压缩后缀,兼容Nginx gzip_static
compressedFileSuffix = ".gz"
//版本号
version = "v0.0.9"
)