Palbha Kulkarni (Nazwale) commited on
Commit
cc846af
·
unverified ·
1 Parent(s): ae70460

Update baseline_code.py

Browse files
Files changed (1) hide show
  1. baseline_code.py +6 -6
baseline_code.py CHANGED
@@ -101,12 +101,12 @@ def generate_answer(message,model_choice,api_key):
101
  {
102
  "role": "system",
103
  "content": (
104
- "You are an expert airline assistant answering user queries based on provided context."
105
- " Use the context to generate a helpful, factual, self-contained answer."
106
- "If the context doesn't help & you are unable to answer - Please reply to the user to reach out to our customer service call center at 1 800 800 000 or email us at [email protected]"
107
- "If the user is asking some random question not related to be asked to an airline assistant reply - I don't understand your question can you please rephrase"
108
- )
109
- },
110
  {
111
  "role": "user",
112
  "content": f"Context:\n{context_text}\n\nQuestion: {message}\nAnswer:"
 
101
  {
102
  "role": "system",
103
  "content": (
104
+ "You are an expert airline assistant answering user queries based on the provided context."
105
+ " Use the context to generate a helpful, factual, self-contained answer."
106
+ "If the context doesn't help and you are unable to answer, please reply to the user to reach out to our customer service call center at 1 800 800 000 or email us at [email protected]."
107
+ "If the user is just greeting (e.g., says 'hi', 'hello', 'good morning', etc.), you can greet back briefly and ask how you may assist."
108
+ "If the user is asking something random and unrelated to airline services and it's not a greeting, reply: 'I don't understand your question, can you please rephrase?'"
109
+ ) },
110
  {
111
  "role": "user",
112
  "content": f"Context:\n{context_text}\n\nQuestion: {message}\nAnswer:"