diff --git a/.chainlit/config.toml b/.chainlit/config.toml index bb57df8..be10a3b 100644 --- a/.chainlit/config.toml +++ b/.chainlit/config.toml @@ -74,7 +74,7 @@ github = "https://github.com/reactome/reactome_chatbot/issues" # Specify a Javascript file that can be used to customize the user interface. # The Javascript file can be served from the public directory. -# custom_js = "/public/test.js" +custom_js = "/public/custom.js" # Specify a custom meta image url. # custom_meta_image_url = "https://chainlit-cloud.s3.eu-west-3.amazonaws.com/logo/chainlit_banner.png" diff --git a/.dockerignore b/.dockerignore index 57688a2..5b3c643 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,4 @@ +data/ embeddings/ embeddings_bak/ csv_files/ diff --git a/bin/chat-fastapi.py b/bin/chat-fastapi.py index 29a74e0..82dda31 100644 --- a/bin/chat-fastapi.py +++ b/bin/chat-fastapi.py @@ -288,7 +288,9 @@ async def landing_page():
+
+
+
Your new guide to Reactome. Whether you're looking for specific genes and pathways or just browsing, our AI Chatbot is here to assist you!
@@ -296,7 +298,7 @@ async def landing_page():Choose Guest Access to try the chatbot out. Log In will give an increased query allowance and securely stores your chat history so you can save and continue conversations.
diff --git a/chainlit.md b/chainlit.md index 73653c6..908001a 100644 --- a/chainlit.md +++ b/chainlit.md @@ -35,3 +35,10 @@ Explore pathways such as: Happy exploring with React-to-me! +## _Disclaimer_ + +_This chatbot uses large language model (LLM) technology to assist with questions about the Reactome Knowledgebase. Responses are generated automatically and may contain inaccuracies, outdated information or speculative language._ + +_The information you provide may be retained in accordance with Reactome’s AI provider’s retention policy, which is located [here](https://openai.com/enterprise-privacy/). Do not share sensitive, personal or confidential information._ + +_The chatbot does not substitute for expert curation or peer-reviewed sources and is not a suitable resource for clinical decisions. Users are responsible for validating any output before using it for research, publication, or medical decisions. Any use of this chatbot is subject to Reactome’s [disclaimer](https://reactome.org/about/disclaimer)._ diff --git a/config_default.yml b/config_default.yml index 6831216..e53055a 100644 --- a/config_default.yml +++ b/config_default.yml @@ -18,17 +18,11 @@ messages: welcome: message: |- - Welcome to {chat_profile}, your interactive chatbot for exploring Reactome! + Welcome to {chat_profile}, your interactive chatbot for exploring **[Reactome](https://reactome.org/)**! Ask me about biological pathways and processes. trigger: event: on_chat_start - survey_message: - message: |- - We hope you're enjoying your experience with React-to-me! We'd love to hear your feedback to make it even better. Please take a few minutes to fill out our [survey](https://forms.gle/Rvzb8EA73yZs7wd38). - trigger: - after_messages: 3 - demo-message: message: |- Hello! diff --git a/public/custom.js b/public/custom.js new file mode 100644 index 0000000..67abcde --- /dev/null +++ b/public/custom.js @@ -0,0 +1,64 @@ +/* + * Replace the contents of the Chainlit watermark/footer + */ +(function () { + const CUSTOM_FOOTER_HTML = ` +