Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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,
|
|
|
|
| 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}
|