Spaces:
Sleeping
Sleeping
clementsan
commited on
Commit
•
4f52c44
1
Parent(s):
75ea3bb
Reduce default text splitter parameters
Browse files
app.py
CHANGED
@@ -197,9 +197,9 @@ def demo():
|
|
197 |
db_btn = gr.Radio(["ChromaDB"], label="Vector database", value = "ChromaDB", type="index", info="Choose your vector database")
|
198 |
with gr.Accordion("Advanced options - Text splitter", open=False):
|
199 |
with gr.Row():
|
200 |
-
slider_chunk_size = gr.Slider(minimum = 100, maximum = 1000, value=
|
201 |
with gr.Row():
|
202 |
-
slider_chunk_overlap = gr.Slider(minimum = 10, maximum = 200, value=
|
203 |
with gr.Row():
|
204 |
db_progress = gr.Textbox(label="Database Initialization", value="None")
|
205 |
with gr.Row():
|
|
|
197 |
db_btn = gr.Radio(["ChromaDB"], label="Vector database", value = "ChromaDB", type="index", info="Choose your vector database")
|
198 |
with gr.Accordion("Advanced options - Text splitter", open=False):
|
199 |
with gr.Row():
|
200 |
+
slider_chunk_size = gr.Slider(minimum = 100, maximum = 1000, value=500, step=20, label="Chunk size", info="Chunk size", interactive=True)
|
201 |
with gr.Row():
|
202 |
+
slider_chunk_overlap = gr.Slider(minimum = 10, maximum = 200, value=40, step=10, label="Chunk overlap", info="Chunk overlap", interactive=True)
|
203 |
with gr.Row():
|
204 |
db_progress = gr.Textbox(label="Database Initialization", value="None")
|
205 |
with gr.Row():
|