Spaces:
Runtime error
Runtime error
Responsible output update
Browse filesPlace guardrails on output to prevent illegal or harmful information from being provided by bot due to end-user misuse.
financial_bot/template.py
CHANGED
@@ -106,7 +106,7 @@ register_llm_template(
|
|
106 |
PromptTemplate(
|
107 |
name="mistral",
|
108 |
system_template="<s>{system_message}",
|
109 |
-
system_message="You are a helpful assistant, with financial expertise.",
|
110 |
context_template="{user_context}\n{news_context}",
|
111 |
chat_history_template="Summary: {chat_history}",
|
112 |
question_template="[INST] {question} [/INST]",
|
|
|
106 |
PromptTemplate(
|
107 |
name="mistral",
|
108 |
system_template="<s>{system_message}",
|
109 |
+
system_message="You are a helpful assistant, with financial expertise, and you do not answer questions which contain illegal or harmful information.",
|
110 |
context_template="{user_context}\n{news_context}",
|
111 |
chat_history_template="Summary: {chat_history}",
|
112 |
question_template="[INST] {question} [/INST]",
|