Arnasltlt
commited on
Commit
•
b15dd64
1
Parent(s):
7479069
cool update
Browse files
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
app.py
CHANGED
@@ -182,7 +182,7 @@ def answer_question(
|
|
182 |
df,
|
183 |
model="gpt-3.5-turbo",
|
184 |
question="Am I allowed to publish model outputs to Twitter, without a human review?",
|
185 |
-
max_len=
|
186 |
size="ada",
|
187 |
debug=False,
|
188 |
max_tokens=500,
|
@@ -208,11 +208,11 @@ def answer_question(
|
|
208 |
response = openai.ChatCompletion.create(
|
209 |
#prompt=f"You're an automated response bot for the first reply to a customers email. Answer the question in form of an email to a customer based on the context below and provide a relevant url if its available, and if the question can't be answered based on the context, say \"I don't know and that a human will follow up soon.\"\n\nContext: {context}\n\n---\n\nQuestion: {question}\nAnswer:",
|
210 |
messages=[
|
211 |
-
{"role": "system", "content": f"You're an automated response bot for the first reply to a customers email. Answer the question in form of an email to a customer based on the context below and provide a relevant url if its available.
|
212 |
{"role": "system", "content": f"Context: {context}\"\nQuestion: {question}. Answer in the same language content from user question.", },
|
213 |
{"role": "user", "content": f"{question}"}
|
214 |
],
|
215 |
-
temperature=0.
|
216 |
max_tokens=max_tokens,
|
217 |
top_p=1,
|
218 |
frequency_penalty=0,
|
|
|
182 |
df,
|
183 |
model="gpt-3.5-turbo",
|
184 |
question="Am I allowed to publish model outputs to Twitter, without a human review?",
|
185 |
+
max_len=1000,
|
186 |
size="ada",
|
187 |
debug=False,
|
188 |
max_tokens=500,
|
|
|
208 |
response = openai.ChatCompletion.create(
|
209 |
#prompt=f"You're an automated response bot for the first reply to a customers email. Answer the question in form of an email to a customer based on the context below and provide a relevant url if its available, and if the question can't be answered based on the context, say \"I don't know and that a human will follow up soon.\"\n\nContext: {context}\n\n---\n\nQuestion: {question}\nAnswer:",
|
210 |
messages=[
|
211 |
+
{"role": "system", "content": f"You're an automated response bot for the first reply to a customers email. Answer the question in form of an email to a customer based on the context below and provide a relevant url if its available. Be concice. If the question can't be answered based on the context, say: I couldn't find that information,"},
|
212 |
{"role": "system", "content": f"Context: {context}\"\nQuestion: {question}. Answer in the same language content from user question.", },
|
213 |
{"role": "user", "content": f"{question}"}
|
214 |
],
|
215 |
+
temperature=0.4,
|
216 |
max_tokens=max_tokens,
|
217 |
top_p=1,
|
218 |
frequency_penalty=0,
|