Jaita commited on
Commit
2e0e513
·
verified ·
1 Parent(s): 2c5135e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -74,8 +74,9 @@ async def chat_with_ai(input_data: ChatInput):
74
  # Construct enhanced prompt with context
75
  if context:
76
  enhanced_prompt = f"""Use the following knowledge base context to answer the user's question accurately.
77
- If the context contains relevant information, base your answer on it.
78
- If the context doesn't help, say you're raising a ticket and provide a ticket number.
 
79
  Knowledge Base Context:
80
  {context}
81
  User Question: {input_data.user_message}
 
74
  # Construct enhanced prompt with context
75
  if context:
76
  enhanced_prompt = f"""Use the following knowledge base context to answer the user's question accurately.
77
+ If the context contains relevant information, base your answer on it.
78
+ If the context doesn't help, ask follow-up questions to get a grip of the issue
79
+ and if user says issue not resolved or still facing the issue, say you're raising a ticket and provide a ticket number.
80
  Knowledge Base Context:
81
  {context}
82
  User Question: {input_data.user_message}