Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,9 +35,8 @@ Chat History: {chat_history}
|
|
35 |
Question: {question}
|
36 |
Answer:
|
37 |
"""
|
38 |
-
|
39 |
daysoff_assistant_prompt = PromptTemplate(
|
40 |
-
input_variables=[
|
41 |
template=daysoff_assistant_template
|
42 |
)
|
43 |
|
@@ -55,13 +54,14 @@ api_url_prompt = PromptTemplate(input_variables=['api_docs', 'question'],
|
|
55 |
|
56 |
api_response_template = """
|
57 |
With the API Documentation for Daysoff's official API: {api_docs} in mind,
|
58 |
-
and
|
59 |
and given this API URL: {api_url} for querying,
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
|
|
65 |
"""
|
66 |
|
67 |
api_response_prompt = PromptTemplate(
|
|
|
35 |
Question: {question}
|
36 |
Answer:
|
37 |
"""
|
|
|
38 |
daysoff_assistant_prompt = PromptTemplate(
|
39 |
+
input_variables=['chat_history', 'question', 'help', 'ansatte_faq_data', 'utleiere_faq_data','personvernspolicy_data', 'help2'],
|
40 |
template=daysoff_assistant_template
|
41 |
)
|
42 |
|
|
|
54 |
|
55 |
api_response_template = """
|
56 |
With the API Documentation for Daysoff's official API: {api_docs} in mind,
|
57 |
+
and user question: {question} in mind,
|
58 |
and given this API URL: {api_url} for querying,
|
59 |
+
and if the response from Daysoff's API is information associated with
|
60 |
+
a booking ID (โbestillingskodeโ): {api_response},
|
61 |
+
please directly address the user's question (in Norwegian) and focus on delivering the
|
62 |
+
the response from Daysoff's API in a markdown table with clarity
|
63 |
+
and conciseness.
|
64 |
+
Reply:
|
65 |
"""
|
66 |
|
67 |
api_response_prompt = PromptTemplate(
|