Commit
·
0cd7c97
1
Parent(s):
bfbd754
Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,8 @@ if __name__ == "__main__":
|
|
26 |
# call the chunk size mehtod that sets the number
|
27 |
chunk_size = st.number_input('Chunk size:', min_value=100, max_value=2048, value=512, on_change=clear_history)
|
28 |
|
29 |
-
# input the k number,
|
30 |
-
k = st.number_input('k', min_value=1, max_value=20, value=3, on_change=clear_history)
|
31 |
|
32 |
# click this sidebard button to add data
|
33 |
add_data = st.button('Add Data', on_click=clear_history)
|
|
|
26 |
# call the chunk size mehtod that sets the number
|
27 |
chunk_size = st.number_input('Chunk size:', min_value=100, max_value=2048, value=512, on_change=clear_history)
|
28 |
|
29 |
+
# input the top-k number, k increase the search effectiveness, but is more expensive
|
30 |
+
k = st.number_input('top-k most salient docs', min_value=1, max_value=20, value=3, on_change=clear_history)
|
31 |
|
32 |
# click this sidebard button to add data
|
33 |
add_data = st.button('Add Data', on_click=clear_history)
|