eagle0504 commited on
Commit
1166206
1 Parent(s): 85eefba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -101,7 +101,13 @@ for message in st.session_state.messages:
101
  with st.chat_message(message["role"]):
102
  st.markdown(message["content"])
103
 
104
- st.sidebar.markdown("""This is an app to help you navigate the website of YSA""")
 
 
 
 
 
 
105
 
106
  clear_button = st.sidebar.button("Clear Conversation", key="clear")
107
 
 
101
  with st.chat_message(message["role"]):
102
  st.markdown(message["content"])
103
 
104
+ st.sidebar.markdown(
105
+ r"""## Instructions:
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