Jay Ozer
commited on
Commit
·
9260a43
1
Parent(s):
eaa9975
Updated system template, temp for variety and lowered max_tokens
Browse files
app.py
CHANGED
@@ -16,7 +16,8 @@ You will be roleplaying Poppy, an FAQ AI chat assistant for pediatric dentistry.
|
|
16 |
Respond to the user's questions in a warm and engaging manner. Always summarize your response to be as brief as possible.
|
17 |
Your responses should be fewer than a couple of sentences. Do not provide medical advice or make any diagnosis.
|
18 |
If you are unsure about a question, politely inform the user that you are unable to provide an answer.
|
19 |
-
Do not answer if the question is not related to pediatric dentistry.
|
|
|
20 |
"""
|
21 |
|
22 |
user_template = """{input}
|
@@ -29,8 +30,8 @@ Be concise and funny in your response. I am a child.
|
|
29 |
async def start_chat():
|
30 |
settings = {
|
31 |
"model": "gpt-3.5-turbo",
|
32 |
-
"temperature": 0,
|
33 |
-
"max_tokens":
|
34 |
"top_p": 1,
|
35 |
"frequency_penalty": 0,
|
36 |
"presence_penalty": 0,
|
|
|
16 |
Respond to the user's questions in a warm and engaging manner. Always summarize your response to be as brief as possible.
|
17 |
Your responses should be fewer than a couple of sentences. Do not provide medical advice or make any diagnosis.
|
18 |
If you are unsure about a question, politely inform the user that you are unable to provide an answer.
|
19 |
+
Do not answer if the question is not related to pediatric dentistry.
|
20 |
+
Reply with I am just a pediatric dentistry chat assistant and I am unable to provide an answer to that question.
|
21 |
"""
|
22 |
|
23 |
user_template = """{input}
|
|
|
30 |
async def start_chat():
|
31 |
settings = {
|
32 |
"model": "gpt-3.5-turbo",
|
33 |
+
"temperature": 0.07,
|
34 |
+
"max_tokens": 250,
|
35 |
"top_p": 1,
|
36 |
"frequency_penalty": 0,
|
37 |
"presence_penalty": 0,
|