Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -102,12 +102,15 @@ for message in st.session_state.messages:
|
|
102 |
st.markdown(message["content"])
|
103 |
|
104 |
st.sidebar.markdown(
|
105 |
-
"""
|
|
|
|
|
106 |
|
107 |
This is an app to help you navigate the website of YSA. The created the RAG-ready data [here](https://huggingface.co/datasets/eagle0504/youthless-homeless-shelter-web-scrape-dataset-qa-formatted) which consists of questions and answers that help the chatbot.
|
108 |
|
109 |
Once entered a question, the system will search for relevant questions in the database and then produce an answer based on the context answers in the database with a distance score. The distance score represents how similar the user question is comparing with the question in the database. The smaller the distance score the more similar / relevant the database is at producing similar context. For hallucination cases, a viable strategy is to collect user preferences and update the database.
|
110 |
-
|
|
|
111 |
|
112 |
clear_button = st.sidebar.button("Clear Conversation", key="clear")
|
113 |
|
|
|
102 |
st.markdown(message["content"])
|
103 |
|
104 |
st.sidebar.markdown(
|
105 |
+
"""
|
106 |
+
|
107 |
+
## Instructions:
|
108 |
|
109 |
This is an app to help you navigate the website of YSA. The created the RAG-ready data [here](https://huggingface.co/datasets/eagle0504/youthless-homeless-shelter-web-scrape-dataset-qa-formatted) which consists of questions and answers that help the chatbot.
|
110 |
|
111 |
Once entered a question, the system will search for relevant questions in the database and then produce an answer based on the context answers in the database with a distance score. The distance score represents how similar the user question is comparing with the question in the database. The smaller the distance score the more similar / relevant the database is at producing similar context. For hallucination cases, a viable strategy is to collect user preferences and update the database.
|
112 |
+
|
113 |
+
""")
|
114 |
|
115 |
clear_button = st.sidebar.button("Clear Conversation", key="clear")
|
116 |
|