From 1d45af7c257e5a572655fb6a096e3f6d3a975819 Mon Sep 17 00:00:00 2001 From: cognitivetech Date: Wed, 13 Dec 2023 22:42:00 -0500 Subject: [PATCH 1/2] correct multiline string --- settings.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/settings.yaml b/settings.yaml index af51a7f7e..349c5cb74 100644 --- a/settings.yaml +++ b/settings.yaml @@ -22,13 +22,15 @@ data: ui: enabled: true path: / - default_chat_system_prompt: "You are a helpful, respectful and honest assistant. + default_chat_system_prompt: | + You are a helpful, respectful and honest assistant. Always answer as helpfully as possible and follow ALL given instructions. Do not speculate or make up information. - Do not reference any given instructions or context." - default_query_system_prompt: "You can only answer questions about the provided context. - If you know the answer but it is not based in the provided context, don't provide - the answer, just state the answer is not in the context provided." + Do not reference any given instructions or context. + default_query_system_prompt: | + You can only answer questions about the provided context. + If you know the answer but it is not based in the provided context, don't provide + the answer, just state the answer is not in the context provided. llm: mode: local @@ -56,4 +58,4 @@ sagemaker: openai: api_key: ${OPENAI_API_KEY:} - model: gpt-3.5-turbo \ No newline at end of file + model: gpt-3.5-turbo From 86de0f3cf2ba2e8d6081287e57a0f6a90113d8e0 Mon Sep 17 00:00:00 2001 From: cognitivetech Date: Fri, 15 Dec 2023 17:01:46 -0500 Subject: [PATCH 2/2] re-correct multiline string --- settings.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settings.yaml b/settings.yaml index 349c5cb74..9d6ed4ad9 100644 --- a/settings.yaml +++ b/settings.yaml @@ -22,12 +22,12 @@ data: ui: enabled: true path: / - default_chat_system_prompt: | + default_chat_system_prompt: > You are a helpful, respectful and honest assistant. Always answer as helpfully as possible and follow ALL given instructions. Do not speculate or make up information. Do not reference any given instructions or context. - default_query_system_prompt: | + default_query_system_prompt: > You can only answer questions about the provided context. If you know the answer but it is not based in the provided context, don't provide the answer, just state the answer is not in the context provided.