XThomasBU
commited on
Commit
·
ac3c353
1
Parent(s):
d92c997
updates
Browse files- apps/ai_tutor/config/config.yml +5 -5
- apps/ai_tutor/main.py +2 -2
- apps/chainlit_base/public/acastusphoton-svgrepo-com.svg +2 -0
- apps/chainlit_base/public/adv-screen-recorder-svgrepo-com.svg +2 -0
- apps/chainlit_base/public/alarmy-svgrepo-com.svg +2 -0
- apps/chainlit_base/public/avatars/ai_tutor.png +0 -0
- apps/chainlit_base/public/calendar-samsung-17-svgrepo-com.svg +36 -0
- apps/chainlit_base/public/logo_dark.png +0 -0
- apps/chainlit_base/public/logo_light.png +0 -0
- apps/chainlit_base/public/space.jpg +3 -0
- apps/chainlit_base/public/test.css +24 -0
apps/ai_tutor/config/config.yml
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
log_dir: '
|
2 |
-
log_chunk_dir: '
|
3 |
device: 'cpu' # str [cuda, cpu]
|
4 |
|
5 |
vectorstore:
|
6 |
load_from_HF: True # bool
|
7 |
reparse_files: True # bool
|
8 |
-
data_path: '
|
9 |
-
url_file_path: '
|
10 |
expand_urls: True # bool
|
11 |
db_option : 'RAGatouille' # str [FAISS, Chroma, RAGatouille, RAPTOR]
|
12 |
-
db_path : '
|
13 |
model : 'sentence-transformers/all-MiniLM-L6-v2' # str [sentence-transformers/all-MiniLM-L6-v2, text-embedding-ada-002']
|
14 |
search_top_k : 3 # int
|
15 |
score_threshold : 0.2 # float
|
|
|
1 |
+
log_dir: 'storage/logs' # str
|
2 |
+
log_chunk_dir: 'storage/logs/chunks' # str
|
3 |
device: 'cpu' # str [cuda, cpu]
|
4 |
|
5 |
vectorstore:
|
6 |
load_from_HF: True # bool
|
7 |
reparse_files: True # bool
|
8 |
+
data_path: 'storage/data' # str
|
9 |
+
url_file_path: 'storage/data/urls.txt' # str
|
10 |
expand_urls: True # bool
|
11 |
db_option : 'RAGatouille' # str [FAISS, Chroma, RAGatouille, RAPTOR]
|
12 |
+
db_path : 'vectorstores' # str
|
13 |
model : 'sentence-transformers/all-MiniLM-L6-v2' # str [sentence-transformers/all-MiniLM-L6-v2, text-embedding-ada-002']
|
14 |
search_top_k : 3 # int
|
15 |
score_threshold : 0.2 # float
|
apps/ai_tutor/main.py
CHANGED
@@ -38,7 +38,7 @@ AGENT = "Agent"
|
|
38 |
YOU = "User"
|
39 |
ERROR = "Error"
|
40 |
|
41 |
-
with open("
|
42 |
config = yaml.safe_load(f)
|
43 |
|
44 |
|
@@ -85,7 +85,7 @@ class Chatbot:
|
|
85 |
"""
|
86 |
Load the configuration from a YAML file.
|
87 |
"""
|
88 |
-
with open("
|
89 |
return yaml.safe_load(f)
|
90 |
|
91 |
@no_type_check
|
|
|
38 |
YOU = "User"
|
39 |
ERROR = "Error"
|
40 |
|
41 |
+
with open("config/config.yml", "r") as f:
|
42 |
config = yaml.safe_load(f)
|
43 |
|
44 |
|
|
|
85 |
"""
|
86 |
Load the configuration from a YAML file.
|
87 |
"""
|
88 |
+
with open("config/config.yml", "r") as f:
|
89 |
return yaml.safe_load(f)
|
90 |
|
91 |
@no_type_check
|
apps/chainlit_base/public/acastusphoton-svgrepo-com.svg
ADDED
apps/chainlit_base/public/adv-screen-recorder-svgrepo-com.svg
ADDED
apps/chainlit_base/public/alarmy-svgrepo-com.svg
ADDED
apps/chainlit_base/public/avatars/ai_tutor.png
ADDED
apps/chainlit_base/public/calendar-samsung-17-svgrepo-com.svg
ADDED
apps/chainlit_base/public/logo_dark.png
ADDED
apps/chainlit_base/public/logo_light.png
ADDED
apps/chainlit_base/public/space.jpg
ADDED
Git LFS Details
|
apps/chainlit_base/public/test.css
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
a[href*='https://github.com/Chainlit/chainlit'] {
|
2 |
+
visibility: hidden;
|
3 |
+
}
|
4 |
+
|
5 |
+
|
6 |
+
/* Target the container of the image and set a custom background image */
|
7 |
+
.MuiAvatar-root.MuiAvatar-circular.css-m2icte {
|
8 |
+
background-image: url('/public/avatars/ai-tutor.png'); /* Replace with your custom image URL */
|
9 |
+
background-size: cover; /* Ensure the image covers the entire container */
|
10 |
+
background-position: center; /* Center the image */
|
11 |
+
width: 100px; /* Ensure the dimensions match the original */
|
12 |
+
height: 100px; /* Ensure the dimensions match the original */
|
13 |
+
border-radius: 50%; /* Maintain circular shape */
|
14 |
+
}
|
15 |
+
|
16 |
+
|
17 |
+
.MuiAvatar-root.MuiAvatar-circular.css-v72an7 {
|
18 |
+
background-image: url('/public/avatars/ai-tutor.png'); /* Replace with your custom image URL */
|
19 |
+
background-size: cover; /* Ensure the image covers the entire container */
|
20 |
+
background-position: center; /* Center the image */
|
21 |
+
width: 40px; /* Ensure the dimensions match the original */
|
22 |
+
height: 40px; /* Ensure the dimensions match the original */
|
23 |
+
border-radius: 50%; /* Maintain circular shape */
|
24 |
+
}
|