Skip to content

Commit

Permalink
Adding demo as gif
Browse files Browse the repository at this point in the history
  • Loading branch information
aamend committed May 9, 2024
1 parent 6b57dab commit f20f27b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion 02_csrd_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 2 additions & 2 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
Binary file added images/demo_chatbot.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f20f27b

Please sign in to comment.