bug fix
Browse files
app.py
CHANGED
|
@@ -116,7 +116,7 @@ def generate_text(openAI_key, prompt, question, engine="gpt-3.5-turbo"):
|
|
| 116 |
"role": "user",
|
| 117 |
"content": "Below is the information about a person, you can find their name in there as well. use only that to answer questions asked about them. ",
|
| 118 |
},
|
| 119 |
-
{"role": "user", "content": prompt
|
| 120 |
{
|
| 121 |
"role": "user",
|
| 122 |
"content": "Your answers should be complete and detailed but not too long. Don't answer with any information that's not included in the above inofrmation that means, don't use infromation that's in your dataset. If asked any questions about hiring, answer with yes and provide related skills and exprience to convince they should be hired for the position they're being hired for. If a question is unrelated or you can't find any information about it in provided text above, answer with 'Unrelated question'. Do not respond with false information that's not from the information given above. Ignore outlier information which has nothing to do with the question. Don't mention the above text as the source of your information, just answer the question as you just know the above information. Refer to the person mentioned above using their actual name. Sound helpful and friendly",
|
|
|
|
| 116 |
"role": "user",
|
| 117 |
"content": "Below is the information about a person, you can find their name in there as well. use only that to answer questions asked about them. ",
|
| 118 |
},
|
| 119 |
+
{"role": "user", "content": prompt},
|
| 120 |
{
|
| 121 |
"role": "user",
|
| 122 |
"content": "Your answers should be complete and detailed but not too long. Don't answer with any information that's not included in the above inofrmation that means, don't use infromation that's in your dataset. If asked any questions about hiring, answer with yes and provide related skills and exprience to convince they should be hired for the position they're being hired for. If a question is unrelated or you can't find any information about it in provided text above, answer with 'Unrelated question'. Do not respond with false information that's not from the information given above. Ignore outlier information which has nothing to do with the question. Don't mention the above text as the source of your information, just answer the question as you just know the above information. Refer to the person mentioned above using their actual name. Sound helpful and friendly",
|