You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: code/modules/constants.py
+2-2
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@
36
36
37
37
tinyllama_prompt_template="""
38
38
<|im_start|>system
39
-
Assistant is an intelligent chatbot designed to help students with questions regarding the course. Only answer questions using the context below and if you're not sure of an answer, you can say "I don't know". Always give a breif and concise answer to the question. Use the history to answer the question if you can.
39
+
Assistant is an intelligent chatbot designed to help students with questions regarding the course. Only answer the question that is asked using the context below and if you're not sure of an answer, you can say "I don't know". Always give a breif and concise answer to the question. Use the history to answer the question if you can.
40
40
41
41
Context:
42
42
{context}
@@ -55,7 +55,7 @@
55
55
56
56
tinyllama_prompt_template_with_history="""
57
57
<|im_start|>system
58
-
Assistant is an intelligent chatbot designed to help students with questions regarding the course. Only answer questions using the context below and if you're not sure of an answer, you can say "I don't know". Always give a breif and concise answer to the question.
58
+
Assistant is an intelligent chatbot designed to help students with questions regarding the course. Only answer the question that is asked using the context below and if you're not sure of an answer, you can say "I don't know". Always give a breif and concise answer to the question.
# Whether to enable telemetry (default: true). No personal data is collected.
3
+
enable_telemetry = true
4
+
5
+
6
+
# List of environment variables to be provided by each user to use the app.
7
+
user_env = []
8
+
9
+
# Duration (in seconds) during which the session is saved when the connection is lost
10
+
session_timeout = 3600
11
+
12
+
# Enable third parties caching (e.g LangChain cache)
13
+
cache = false
14
+
15
+
# Authorized origins
16
+
allow_origins = ["*"]
17
+
18
+
# Follow symlink for asset mount (see https://github.com/Chainlit/chainlit/issues/317)
19
+
# follow_symlink = false
20
+
21
+
[features]
22
+
# Show the prompt playground
23
+
prompt_playground = true
24
+
25
+
# Process and display HTML in messages. This can be a security risk (see https://stackoverflow.com/questions/19603097/why-is-it-dangerous-to-render-user-generated-html-or-javascript)
26
+
unsafe_allow_html = false
27
+
28
+
# Process and display mathematical expressions. This can clash with "$" characters in messages.
29
+
latex = false
30
+
31
+
# Automatically tag threads with the current chat profile (if a chat profile is used)
32
+
auto_tag_thread = true
33
+
34
+
# Authorize users to spontaneously upload files with messages
35
+
[features.spontaneous_file_upload]
36
+
enabled = true
37
+
accept = ["*/*"]
38
+
max_files = 20
39
+
max_size_mb = 500
40
+
41
+
[features.audio]
42
+
# Threshold for audio recording
43
+
min_decibels = -45
44
+
# Delay for the user to start speaking in MS
45
+
initial_silence_timeout = 3000
46
+
# Delay for the user to continue speaking in MS. If the user stops speaking for this duration, the recording will stop.
47
+
silence_timeout = 1500
48
+
# Above this duration (MS), the recording will forcefully stop.
49
+
max_duration = 15000
50
+
# Duration of the audio chunks in MS
51
+
chunk_duration = 1000
52
+
# Sample rate of the audio
53
+
sample_rate = 44100
54
+
55
+
[UI]
56
+
# Name of the app and chatbot.
57
+
name = "Chatbot"
58
+
59
+
# Show the readme while the thread is empty.
60
+
show_readme_as_default = true
61
+
62
+
# Description of the app and chatbot. This is used for HTML tags.
63
+
# description = ""
64
+
65
+
# Large size content are by default collapsed for a cleaner ui
66
+
default_collapse_content = true
67
+
68
+
# The default value for the expand messages settings.
69
+
default_expand_messages = false
70
+
71
+
# Hide the chain of thought details from the user in the UI.
72
+
hide_cot = false
73
+
74
+
# Link to your github repo. This will add a github button in the UI's header.
75
+
# github = ""
76
+
77
+
# Specify a CSS file that can be used to customize the user interface.
78
+
# The CSS file can be served from the public directory or via an external link.
79
+
# custom_css = "/public/test.css"
80
+
81
+
# Specify a Javascript file that can be used to customize the user interface.
82
+
# The Javascript file can be served from the public directory.
0 commit comments