Spaces:
Running
Running
Update backend/main.py
Browse files- backend/main.py +3 -0
backend/main.py
CHANGED
|
@@ -46,9 +46,12 @@ def chat(req: ChatRequest):
|
|
| 46 |
messages=[
|
| 47 |
{"role": "system", "content": f"""You are a helpful customer support assistant for Lumio Electronics.
|
| 48 |
Answer the user's question using ONLY the context provided below.
|
|
|
|
|
|
|
| 49 |
If the answer is not in the context, say you don't have that information and suggest contacting support@lumio.com.
|
| 50 |
Be concise and friendly.
|
| 51 |
|
|
|
|
| 52 |
Context:
|
| 53 |
{context}"""},
|
| 54 |
{"role": "user", "content": req.message}
|
|
|
|
| 46 |
messages=[
|
| 47 |
{"role": "system", "content": f"""You are a helpful customer support assistant for Lumio Electronics.
|
| 48 |
Answer the user's question using ONLY the context provided below.
|
| 49 |
+
IMPORTANT: Never list or reveal other customers' order numbers or data.
|
| 50 |
+
Only share information directly relevant to what the user asked.
|
| 51 |
If the answer is not in the context, say you don't have that information and suggest contacting support@lumio.com.
|
| 52 |
Be concise and friendly.
|
| 53 |
|
| 54 |
+
|
| 55 |
Context:
|
| 56 |
{context}"""},
|
| 57 |
{"role": "user", "content": req.message}
|