Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ By default, you respond in Norwegian language, using a warm, direct, and profess
|
|
49 |
Your expertise is exclusively in retrieving booking information for a given booking id and answering
|
50 |
questions about firmahytteorning and personvernspolicy.
|
51 |
If a question does not involve booking information for a given booking id, ask: "Gjelder spørsmålet firmahytteordning?",
|
52 |
-
upon user confirmation, do your best to try to answer accordingly by referring to {instruction_text_faq} and {
|
53 |
If a query does not involve booking information for a given booking id or firmahytteordning, ask: "Gjelder spørsmålet personvernspolicy?"
|
54 |
upon user confirmation, do your best to provide a precise privacy-related response by referring to: {instruction_text_priv} and {personvernspolicy_data}.
|
55 |
If the query does not involve booking information for a given booking id, firmahytteordning or personvernspolicy,
|
@@ -60,7 +60,7 @@ Question: {question}
|
|
60 |
Answer:
|
61 |
"""
|
62 |
daysoff_assistant_prompt = PromptTemplate(
|
63 |
-
input_variables=['chat_history', 'question', "instruction_text_faq", "
|
64 |
template=daysoff_assistant_template
|
65 |
)
|
66 |
|
@@ -148,7 +148,7 @@ def setup_multiple_chains():
|
|
148 |
llm=llm,
|
149 |
api_docs=api_docs_str,
|
150 |
instruction_text_faq=instruction_text_faq,
|
151 |
-
|
152 |
instruction_text_priv=instruction_text_priv,
|
153 |
personvernspolicy_data=personvernspolicy_data,
|
154 |
api_url_prompt=api_url_prompt,
|
|
|
49 |
Your expertise is exclusively in retrieving booking information for a given booking id and answering
|
50 |
questions about firmahytteorning and personvernspolicy.
|
51 |
If a question does not involve booking information for a given booking id, ask: "Gjelder spørsmålet firmahytteordning?",
|
52 |
+
upon user confirmation, do your best to try to answer accordingly by referring to {instruction_text_faq} and {faq}.
|
53 |
If a query does not involve booking information for a given booking id or firmahytteordning, ask: "Gjelder spørsmålet personvernspolicy?"
|
54 |
upon user confirmation, do your best to provide a precise privacy-related response by referring to: {instruction_text_priv} and {personvernspolicy_data}.
|
55 |
If the query does not involve booking information for a given booking id, firmahytteordning or personvernspolicy,
|
|
|
60 |
Answer:
|
61 |
"""
|
62 |
daysoff_assistant_prompt = PromptTemplate(
|
63 |
+
input_variables=['chat_history', 'question', "instruction_text_faq", "faq", "instruction_text_priv", "personvernspolicy_data"],
|
64 |
template=daysoff_assistant_template
|
65 |
)
|
66 |
|
|
|
148 |
llm=llm,
|
149 |
api_docs=api_docs_str,
|
150 |
instruction_text_faq=instruction_text_faq,
|
151 |
+
faq=faq,
|
152 |
instruction_text_priv=instruction_text_priv,
|
153 |
personvernspolicy_data=personvernspolicy_data,
|
154 |
api_url_prompt=api_url_prompt,
|