diff --git a/02_csrd_search.py b/02_csrd_search.py index d6b0c2d..14827c7 100644 --- a/02_csrd_search.py +++ b/02_csrd_search.py @@ -138,4 +138,9 @@ # COMMAND ---------- # MAGIC %md -# MAGIC Through this simple example, we have guided our model to formulate a point of view solely based on facts we provided upfront (through our vector store), facts that we know we can trust. For the purpose of that demo, we represented output as a form of an HTML notebook. In real life scenario, one should offer that capability as a chat interface outside of a notebook based environment. +# MAGIC Through this simple example, we have guided our model to formulate a point of view solely based on facts we provided upfront (through our vector store), facts that we know we can trust. For the purpose of that demo, we represented output as a form of an HTML notebook. In real life scenario, one should offer that capability as a chat interface outside of a notebook based environment. Here is a simple example done using the [Streamlit](https://streamlit.io/) framework. + +# COMMAND ---------- + +# MAGIC %md +# MAGIC ![demo_chatbot](https://raw.githubusercontent.com/databricks-industry-solutions/csrd_assistant/main/images/demo_chatbot.gif) diff --git a/app/app.py b/app/app.py index 3ae82f5..5fb222e 100644 --- a/app/app.py +++ b/app/app.py @@ -26,8 +26,8 @@ def load_model(endpoint, index): Answer compliance issue related to the CSRD directive only. If the question is not related to regulatory compliance, kindly decline to answer. If you don't know the answer, just say that you don't know, don't try to make up an answer. - Keep the answer as concise as possible, always citing articles and chapters whenever applicable. - Please do not repeat the answer and do not add any additional information. + Keep the answer as concise as possible and always reference articles and chapters used to formulate your response. + Do not repeat the answer and do not add any additional information. Context: {context} Chat History: {chat_history} diff --git a/images/demo_chatbot.gif b/images/demo_chatbot.gif new file mode 100644 index 0000000..8f69ace Binary files /dev/null and b/images/demo_chatbot.gif differ