-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.env.local
192 lines (174 loc) · 8.36 KB
/
.env.local
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# MONGODB_URL=mongodb+srv://skydraisme:Iamskydra16032005@chatbot.hdldica.mongodb.net/?retryWrites=true&w=majority&appName=Chatbot
# MONGODB_DB_NAME=chat-ui
# OPENAI_API_KEY=sk-PRkQEmuX7AFtZX_1CpBAHg
# # USE_LOCAL_WEBSEARCH=false
# MODELS=`[
# {
# "name": "gpt-4o",
# "displayName": "URA-LLaMa-2.1 8B",
# "logoUrl": "https://www.ura.hcmut.edu.vn/wp-content/uploads/2023/11/URA_logo_1024.png",
# "description": "Chatbot of students, by students, for students!",
# "modelUrl": "https://huggingface.co/ura-hcmut/ura-llama-2.1-8b",
# "websiteUrl": "https://cse.hcmut.edu.vn/",
# "preprompt": "",
# "parameters": {
# "temperature": 0.1,
# "top_p": 0.99,
# "max_new_tokens": 512,
# "stop": ["<eos>"]
# },
# "endpoints": [{
# "type" : "openai",
# "baseURL": "https://www.ura.hcmut.edu.vn/llm",
# }],
# "chatPromptTemplate" : "<s>{{#each messages}}{{#ifUser}}[INST] {{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}}{{content}} [/INST]{{/ifUser}}{{#ifAssistant}}{{content}}</s>{{/ifAssistant}}{{/each}}",
# "promptExamples": [
# {
# "title": "Phương thức xét tuyển",
# "prompt": "Có mấy phương thức xét tuyển vào Trường Đại học Bách Khoa"
# }, {
# "title": "Hiệu trưởng của trường",
# "prompt": "Hiệu trưởng trường Đại học Bách Khoa TP.HCM hiện nay là ai?"
# }, {
# "title": "Thông tin liên hệ",
# "prompt": "Thông tin liên hệ Văn phòng tư vấn tuyển sinh tại trường Đại học Bách Khoa Hồ Chí Minh"
# }
# ]
# }
# ]`
# PUBLIC_ANNOUNCEMENT_BANNERS=`[
# {
# "title": "Mô hình URA-LLaMa-2.1 8B được công bố",
# "linkTitle": "Chi tiết",
# "linkHref": "https://huggingface.co/ura-hcmut/ura-llama-2.1-8b"
# },
# {
# "title": "Mô hình GemSUra 7B được công bố",
# "linkTitle": "Chi tiết",
# "linkHref": "https://huggingface.co/ura-hcmut/GemSUra-7B"
# },
# {
# "title": "HCMUT Chatbot tại ngày hội Tư vấn tuyển sinh 2024",
# "linkTitle": "Chi tiết",
# "linkHref": "https://www.facebook.com/share/p/XnVtH7LvGTPwxJgt/"
# }
# ]`
# PUBLIC_APP_NAME=HCMUT Chatbot # name used as title throughout the app
# PUBLIC_VERSION=3
# PUBLIC_APP_ASSETS=hcmutchatbot # used to find logos & favicons in static/$PUBLIC_APP_ASSETS
# PUBLIC_APP_COLOR=sky # can be any of tailwind colors: https://tailwindcss.com/docs/
# PUBLIC_APP_DISCLAIMER_MESSAGE="Khuyến cáo: Trí tuệ nhân tạo (AI) là một lĩnh vực nghiên cứu đang phát triển với những vấn đề đã được biết đến như tạo ra thông tin sai lệch và không đúng sự thật. Không sử dụng ứng dụng này cho các quyết định quan trọng hoặc để nhận lời khuyên."
# PUBLIC_APP_DATA_SHARING=1
MODELS=`[
{
"name": "HCMUT-Chatbot-SV1",
"displayName": "URA-LLaMa-2.1 8B",
"logoUrl": "https://www.ura.hcmut.edu.vn/wp-content/uploads/2023/11/URA_logo_1024.png",
"description": "Chatbot of students, by students, for students!",
"websiteUrl": "https://cse.hcmut.edu.vn/",
"modelUrl": "https://huggingface.co/ura-hcmut/ura-llama-2.1-8b",
"chatPromptTemplate" : "{{#each messages}}{{#ifUser}}{{#if @first}}{{#if @root.preprompt}}<|start_header_id|>system<|end_header_id|>\n\n{{@root.preprompt}}<|eot_id|>\n{{/if}}{{/if}}<|start_header_id|>user<|end_header_id|>\n\n{{content}}<|eot_id|>\n<|start_header_id|>assistant<|end_header_id|>\n\n{{/ifUser}}{{#ifAssistant}}{{content}}<|eot_id|>\n{{/ifAssistant}}{{/each}}",
"promptExamples": [
{
"title": "Phương thức xét tuyển ",
"prompt": "Có mấy phương thức xét tuyển vào Trường Đại học Bách Khoa"
}, {
"title": "Hiệu trưởng của trường",
"prompt": "Hiệu trưởng trường Đại học Bách Khoa TP.HCM hiện nay là ai?"
}, {
"title": "Thông tin liên hệ",
"prompt": "Thông tin liên hệ Văn phòng tư vấn tuyển sinh tại trường Đại học Bách Khoa Hồ Chí Minh"
}
],
"parameters": {
"temperature": 0.6,
"max_new_tokens": 4096
},
"endpoints": [{
"type" : "tgi",
"url": "https://ws.gvlab.org/fablab/ura/llama/haystack/generate_stream"
}]
}
]`
# AUTHORIZATION=BGZSrOW9Xat5maxibhdmMQh5IoJADSSzzwJRvXmhswzhYbJGUaCxOegpDTM6x6ywtbxVHBk5z0aELkYG1MKpfsyqq5YPCZ6beDGm0eJ39ErCUg4cDCj72rizFEEhKaic
MONGODB_DB_NAME=chat_ui
MONGODB_URL=mongodb://chat_ui:BCxpbytfcG2jdBch@www.ura.hcmut.edu.vn:27017/chat_ui
MONGODB_DIRECT_CONNECTION=true
RATE_LIMIT=20 #
PUBLIC_ANNOUNCEMENT_BANNERS=`[
{
"title": "Mô hình URA-LLaMa-2.1 8B được công bố",
"linkTitle": "Chi tiết",
"linkHref": "https://huggingface.co/ura-hcmut/ura-llama-2.1-8b"
},
{
"title": "Mô hình GemSUra 7B được công bố",
"linkTitle": "Chi tiết",
"linkHref": "https://huggingface.co/ura-hcmut/GemSUra-7B"
},
{
"title": "HCMUT Chatbot tại ngày hội Tư vấn tuyển sinh 2024",
"linkTitle": "Chi tiết",
"linkHref": "https://www.facebook.com/share/p/XnVtH7LvGTPwxJgt/ "
}
]`
PUBLIC_APP_NAME=HCMUT Chatbot # name used as title throughout the app
PUBLIC_VERSION=3
PUBLIC_APP_ASSETS=hcmutchatbot # used to find logos & favicons in static/$PUBLIC_APP_ASSETS
PUBLIC_APP_COLOR=sky # can be any of tailwind colors: https://tailwindcss.com/docs/
PUBLIC_APP_DISCLAIMER_MESSAGE="Khuyến cáo: Trí tuệ nhân tạo (AI) là một lĩnh vực nghiên cứu đang phát triển với những vấn đề đã được biết đến như tạo ra thông tin sai lệch và không đúng sự thật. Không sử dụng ứng dụng này cho các quyết định quan trọng hoặc để nhận lời khuyên."
PUBLIC_APP_DATA_SHARING=1
PUBLIC_APP_DISCLAIMER=1
# MODELS=`[
# {
# "name" : "HCMUT-Chatbot-SV1",
# "description": "Chatbot of students, by students, for students!",
# "websiteUrl" : "https://hcmut.edu.vn",
# "modelUrl": "https://huggingface.co/ura-hcmut/ura-llama-2.1-8b",
# "chatPromptTemplate" : "{{#each messages}}{{#ifUser}}{{#if @first}}{{#if @root.preprompt}}<|start_header_id|>system<|end_header_id|>\n\n{{@root.preprompt}}<|eot_id|>\n{{/if}}{{/if}}<|start_header_id|>user<|end_header_id|>\n\n{{content}}<|eot_id|>\n<|start_header_id|>assistant<|end_header_id|>\n\n{{/ifUser}}{{#ifAssistant}}{{content}}<|eot_id|>\n{{/ifAssistant}}{{/each}}",
# "promptExamples": [
# {
# "title": "Các cơ sở của trường",
# "prompt": "Trường đại học Bách Khoa có mấy cơ sở"
# }, {
# "title": "Hiệu trưởng của trường",
# "prompt": "Hiệu trưởng trường đại học Bách Khoa thành phố Hồ Chí Minh hiện tại là ai?"
# }, {
# "title": "Tư vấn tuyển sinh",
# "prompt": "Thông tin liên hệ Văn phòng tư vấn tuyển sinh"
# }
# ],
# "parameters": {
# "temperature": 0.6,
# "max_new_tokens": 4096
# },
# "endpoints": [{
# "type" : "tgi",
# "url": "https://ws.gvlab.org/fablab/ura/llama/haystack/generate_stream"
# }]
# }
# ]`
# AUTHORIZATION=BGZSrOW9Xat5maxibhdmMQh5IoJADSSzzwJRvXmhswzhYbJGUaCxOegpDTM6x6ywtbxVHBk5z0aELkYG1MKpfsyqq5YPCZ6beDGm0eJ39ErCUg4cDCj72rizFEEhKaic
# MONGODB_DB_NAME=chat_ui
# MONGODB_URL=mongodb://chat_ui:BCxpbytfcG2jdBch@www.ura.hcmut.edu.vn:27017/chat_ui
# MONGODB_DIRECT_CONNECTION=true
# RATE_LIMIT=20 # requests per minute
# MESSAGES_BEFORE_LOGIN=# how many messages a user can send in a conversation before having to login. set to 0 to force login right away
# PUBLIC_ANNOUNCEMENT_BANNERS=`[
# {
# "title": "Mô hình GemSUra đã công bố!",
# "linkTitle": "Thông báo",
# "linkHref": "https://huggingface.co/ura-hcmut/GemSUra"
# },
# {
# "title": "Mô hình MixSUra đã công bố!",
# "linkTitle": "Thông báo",
# "linkHref": "https://huggingface.co/ura-hcmut/MixSUra"
# }
# ]`
# PUBLIC_APP_NAME=HCMUT Chat
# PUBLIC_APP_ASSETS=mixsura-chat
# PUBLIC_APP_COLOR=blue
# PUBLIC_APP_DESCRIPTION="Đưa các mô hình AI tốt nhất đến cho cộng đồng."
# PUBLIC_APP_DATA_SHARING=1
# PUBLIC_APP_DISCLAIMER=1