camparchimedes commited on
Commit
9479063
ยท
verified ยท
1 Parent(s): 3cf9bb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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=["chat_history", "question"],
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 the specific user question: {question} in mind,
59
  and given this API URL: {api_url} for querying,
60
- here is the response from Daysoff's API: {api_response}.
61
- Please provide an summary (in Norwegian) that directly addresses the user's question,
62
- and focusing on delivering the answer with clarity and conciseness,
63
- as if a human customer service agent is providing this information.
64
- Summary:
 
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(