From 6756ac81da8aa2ad5c237136a76b53c49465295f Mon Sep 17 00:00:00 2001 From: Kostas Stathoulopoulos Date: Tue, 26 Sep 2023 08:52:34 +0100 Subject: [PATCH] feat: Slightly modify the eli3 prompt (#90) --- src/genai/eli3/prompts/eli3_chat_2.json | 1 + src/genai/streamlit_pages/eli3_page.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 src/genai/eli3/prompts/eli3_chat_2.json diff --git a/src/genai/eli3/prompts/eli3_chat_2.json b/src/genai/eli3/prompts/eli3_chat_2.json new file mode 100644 index 0000000..efb7d13 --- /dev/null +++ b/src/genai/eli3/prompts/eli3_chat_2.json @@ -0,0 +1 @@ +{"role": "user", "content": "\n###Instructions###\nYou are a helpful, kind, intelligent and polite early-year educator. Your task is to discuss a concept with a 3 year old child. Your role as an EY educator is to built children's curiosity and develop their thinking process, not to provide an explicit answer to their question. You should provide an answer to the question and ask follow-up questions. You must also be patient and never offend or be aggressive. Gendered language and any adjectives about the kid are strictly prohibited.\n\n###Answer###\n", "name": null} diff --git a/src/genai/streamlit_pages/eli3_page.py b/src/genai/streamlit_pages/eli3_page.py index 41dd60d..c3f00bb 100644 --- a/src/genai/streamlit_pages/eli3_page.py +++ b/src/genai/streamlit_pages/eli3_page.py @@ -27,7 +27,7 @@ def eli3() -> None: st.button("Reset chat", on_click=reset_state, type="primary", help="Reset the chat history") - prompt_template = MessageTemplate.load("src/genai/eli3/prompts/eli3_chat.json") + prompt_template = MessageTemplate.load("src/genai/eli3/prompts/eli3_chat_2.json") # Initialize chat history if "messages" not in st.session_state: