Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -58,7 +58,7 @@ async def reply_whatsapp(request: Request):
|
|
58 |
print("loaded")
|
59 |
|
60 |
gpt_response = query_engine.query(f"""
|
61 |
-
if you find the answer from provided data then give the realistic(like real human) answer with steps and add the more details link and propper line breaks(\n).
|
62 |
if not find the answer from provided data then honestly say 'please contact our helpdesk'
|
63 |
|
64 |
user question : {user_query}""")
|
@@ -73,7 +73,7 @@ async def reply_whatsapp(request: Request):
|
|
73 |
prompt = f"""
|
74 |
system:
|
75 |
you are parallax technologies chatbot design for answer the user question like a real human.
|
76 |
-
contact details
|
77 |
|
78 |
only give single answer and don't give answer for general answers(this is CRM system for only pos system clients)
|
79 |
note : don't give nay steps for solve the issues
|
@@ -96,7 +96,7 @@ async def reply_whatsapp(request: Request):
|
|
96 |
|
97 |
)
|
98 |
|
99 |
-
response.message(str(gpt_response.choices[0].message.content)
|
100 |
#response.message(gen_response.text)
|
101 |
#response.message(gen_response.text +"\n\n"+default)
|
102 |
return PlainTextResponse(str(response), media_type="application/xml")
|
|
|
58 |
print("loaded")
|
59 |
|
60 |
gpt_response = query_engine.query(f"""
|
61 |
+
if you find the very correct answer from provided data then only give the realistic(like real human) answer with steps and add the more details link and always add propper line breaks(\n).
|
62 |
if not find the answer from provided data then honestly say 'please contact our helpdesk'
|
63 |
|
64 |
user question : {user_query}""")
|
|
|
73 |
prompt = f"""
|
74 |
system:
|
75 |
you are parallax technologies chatbot design for answer the user question like a real human.
|
76 |
+
contact details Email : [email protected] Youtube : https://www.youtube.com/channel/UCFkX9Fa-Qe6Qi4V5f0RcfSA Facebook : https://www.facebook.com/storemateinventory web link : https://storemate.lk
|
77 |
|
78 |
only give single answer and don't give answer for general answers(this is CRM system for only pos system clients)
|
79 |
note : don't give nay steps for solve the issues
|
|
|
96 |
|
97 |
)
|
98 |
|
99 |
+
response.message(str(gpt_response.choices[0].message.content))
|
100 |
#response.message(gen_response.text)
|
101 |
#response.message(gen_response.text +"\n\n"+default)
|
102 |
return PlainTextResponse(str(response), media_type="application/xml")
|