Update visualizer_app.py
Browse files- visualizer_app.py +4 -4
visualizer_app.py
CHANGED
|
@@ -719,8 +719,8 @@ def sentence_splitter_setup():
|
|
| 719 |
|
| 720 |
''')
|
| 721 |
.batch(
|
| 722 |
-
chunk_size = mo.ui.slider(start=100, stop=5000, step=1, label="**Chunk Size:**", value=
|
| 723 |
-
chunk_overlap = mo.ui.slider(start=1, stop=1000, step=1, label="**Chunk Overlap** *(Must always be smaller than Chunk Size)* **:**", value=
|
| 724 |
separator = mo.ui.text(placeholder="Define a separator", label="**Separator:**", kind="text", value=" "),
|
| 725 |
paragraph_separator = mo.ui.text(placeholder="Define a paragraph separator",
|
| 726 |
label="**Paragraph Separator:**", kind="text",
|
|
@@ -1650,7 +1650,7 @@ def prepare_doc_select(sentence_splitter_config):
|
|
| 1650 |
full_width=True,
|
| 1651 |
show_value=True,
|
| 1652 |
label="**Select a Range of Chunks to Visualize:**"
|
| 1653 |
-
).form(submit_button_disabled=check_state(sentence_splitter_config.value), submit_button_label="Change Document View Range")
|
| 1654 |
|
| 1655 |
return llama_docs
|
| 1656 |
return (prepare_document_selection,)
|
|
@@ -1838,7 +1838,7 @@ def create_baseline_chart(
|
|
| 1838 |
def test_query(get_chunk_state):
|
| 1839 |
placeholder = """How can i use watsonx.data to perform vector search?"""
|
| 1840 |
|
| 1841 |
-
query = mo.ui.text_area(label="**Write text to check:**", full_width=True, rows=8, value=placeholder).form(show_clear_button=True, submit_button_disabled=check_state(get_chunk_state()), submit_button_label="Query and View Visualization")
|
| 1842 |
return (query,)
|
| 1843 |
|
| 1844 |
|
|
|
|
| 719 |
|
| 720 |
''')
|
| 721 |
.batch(
|
| 722 |
+
chunk_size = mo.ui.slider(start=100, stop=5000, step=1, label="**Chunk Size:**", value=275, show_value=True, full_width=True),
|
| 723 |
+
chunk_overlap = mo.ui.slider(start=1, stop=1000, step=1, label="**Chunk Overlap** *(Must always be smaller than Chunk Size)* **:**", value=0, show_value=True, full_width=True),
|
| 724 |
separator = mo.ui.text(placeholder="Define a separator", label="**Separator:**", kind="text", value=" "),
|
| 725 |
paragraph_separator = mo.ui.text(placeholder="Define a paragraph separator",
|
| 726 |
label="**Paragraph Separator:**", kind="text",
|
|
|
|
| 1650 |
full_width=True,
|
| 1651 |
show_value=True,
|
| 1652 |
label="**Select a Range of Chunks to Visualize:**"
|
| 1653 |
+
).form(submit_button_disabled=check_state(sentence_splitter_config.value), submit_button_label="Change Document View Range")
|
| 1654 |
|
| 1655 |
return llama_docs
|
| 1656 |
return (prepare_document_selection,)
|
|
|
|
| 1838 |
def test_query(get_chunk_state):
|
| 1839 |
placeholder = """How can i use watsonx.data to perform vector search?"""
|
| 1840 |
|
| 1841 |
+
query = mo.ui.text_area(label="**Write text to check:**", full_width=True, rows=8, value=placeholder).form(show_clear_button=True, submit_button_disabled=check_state(get_chunk_state()), submit_button_label="Query and View Visualization")
|
| 1842 |
return (query,)
|
| 1843 |
|
| 1844 |
|