Update app.py
Browse files
app.py
CHANGED
@@ -205,7 +205,8 @@ st.sidebar.markdown(
|
|
205 |
This app guides you through YSA's website, utilizing a RAG-ready Q&A dataset [here](https://huggingface.co/datasets/eagle0504/youthless-homeless-shelter-web-scrape-dataset-qa-formatted) for chatbot assistance. 🤖 Enter a question, and it finds similar ones in the database, offering answers with a distance score to gauge relevance—the lower the score, the closer the match. 🎯 For better accuracy and to reduce errors, user feedback helps refine the database. ✨
|
206 |
|
207 |
""")
|
208 |
-
|
|
|
209 |
clear_button = st.sidebar.button("Clear Conversation", key="clear")
|
210 |
|
211 |
if clear_button:
|
|
|
205 |
This app guides you through YSA's website, utilizing a RAG-ready Q&A dataset [here](https://huggingface.co/datasets/eagle0504/youthless-homeless-shelter-web-scrape-dataset-qa-formatted) for chatbot assistance. 🤖 Enter a question, and it finds similar ones in the database, offering answers with a distance score to gauge relevance—the lower the score, the closer the match. 🎯 For better accuracy and to reduce errors, user feedback helps refine the database. ✨
|
206 |
|
207 |
""")
|
208 |
+
st.sidebar.success("Please enter a distance threshold (we advise to set it around 0.2).")
|
209 |
+
special_threshold = st.number_input("Insert a number", value=0.2, placeholder="Type a number...") # 0.3
|
210 |
clear_button = st.sidebar.button("Clear Conversation", key="clear")
|
211 |
|
212 |
if clear_button:
|