Spaces:
Sleeping
Sleeping
Farid Karimli
commited on
Commit
·
367ecaa
1
Parent(s):
0f736a4
Chunking settings default
Browse files
apps/ai_tutor/chainlit_app.py
CHANGED
@@ -197,7 +197,9 @@ class Chatbot:
|
|
197 |
id="chunking_mode",
|
198 |
label="Chunking mode",
|
199 |
values=["fixed", "semantic"],
|
200 |
-
initial_index=
|
|
|
|
|
201 |
),
|
202 |
cl.input_widget.Switch(
|
203 |
id="follow_up_questions",
|
|
|
197 |
id="chunking_mode",
|
198 |
label="Chunking mode",
|
199 |
values=["fixed", "semantic"],
|
200 |
+
initial_index=["fixed", "semantic"].index(
|
201 |
+
config["splitter_options"]["chunking_mode"]
|
202 |
+
),
|
203 |
),
|
204 |
cl.input_widget.Switch(
|
205 |
id="follow_up_questions",
|