Spaces:
Runtime error
Runtime error
Karthikeyan
commited on
Commit
•
86b9b27
1
Parent(s):
1fdd414
Update app.py
Browse files
app.py
CHANGED
@@ -148,7 +148,9 @@ class LangChain_Document_QA:
|
|
148 |
file_path = "/content/vodafone_customer_details.json"
|
149 |
with open(file_path) as file:
|
150 |
customer_details = json.load(file)
|
151 |
-
prompt = f"{history}{start_sequence}{text}{restart_sequence} if customer ask any information take it from {customer_details}
|
|
|
|
|
152 |
response = openai.Completion.create(
|
153 |
model="text-davinci-003",
|
154 |
prompt=prompt,
|
|
|
148 |
file_path = "/content/vodafone_customer_details.json"
|
149 |
with open(file_path) as file:
|
150 |
customer_details = json.load(file)
|
151 |
+
prompt = f"""{history}{start_sequence}{text}{restart_sequence} if customer ask any information take it from {customer_details}.
|
152 |
+
if customer say thanks or thankyou tone related messages You should not ask anything to end the conversation with greetings tone.
|
153 |
+
"""
|
154 |
response = openai.Completion.create(
|
155 |
model="text-davinci-003",
|
156 |
prompt=prompt,
|