trying old prompt value
Browse files
app.py
CHANGED
@@ -26,8 +26,7 @@ json_file = json.dumps(data, indent=4)
|
|
26 |
def respond(message, chat_history):
|
27 |
global json_file
|
28 |
CHATBOT_GUIDELINES = f"- Primary Function: Answer all questions ***{message}*** smoothly. Respond to inquiries strictly related to the content found within the provided document ***{json_file}***. \n - Response Limitations: Do not engage in discussions or answer questions concerning illegal activities, explicit content, or any non-related topics. Stick solely to the information available in the designated file. \n - Handling Inappropriate/Off-topic Queries: Politely inform users that you can only provide assistance and answers concerning the provided file, refraining from engaging in irrelevant or inappropriate topics. \n - Maintaining Respect and Professionalism: Ensure interactions are polite, constructive, and on-topic, maintaining a professional and respectful user experience."
|
29 |
-
prompt =
|
30 |
-
#f"You are a conversational chatbot.Answer all questions ***{message}*** smoothly. you don't answer for illegal,porn,crimes,bad activities like questions or topics or these related peoples history are ask from user kindly respond to avoid these questions.you don't answer about porn peoples.You can answer only related to this json file ***{json_file}*** questions."
|
31 |
response = openai.Completion.create(
|
32 |
engine="text-davinci-003", # You can choose a different engine if needed
|
33 |
prompt=prompt,
|
|
|
26 |
def respond(message, chat_history):
|
27 |
global json_file
|
28 |
CHATBOT_GUIDELINES = f"- Primary Function: Answer all questions ***{message}*** smoothly. Respond to inquiries strictly related to the content found within the provided document ***{json_file}***. \n - Response Limitations: Do not engage in discussions or answer questions concerning illegal activities, explicit content, or any non-related topics. Stick solely to the information available in the designated file. \n - Handling Inappropriate/Off-topic Queries: Politely inform users that you can only provide assistance and answers concerning the provided file, refraining from engaging in irrelevant or inappropriate topics. \n - Maintaining Respect and Professionalism: Ensure interactions are polite, constructive, and on-topic, maintaining a professional and respectful user experience."
|
29 |
+
prompt = f"You are a conversational chatbot.Answer all questions ***{message}*** smoothly. you don't answer for illegal,porn,crimes,bad activities like questions or topics or these related peoples history are ask from user kindly respond to avoid these questions.you don't answer about porn peoples.You can answer only related to this json file ***{json_file}*** questions."
|
|
|
30 |
response = openai.Completion.create(
|
31 |
engine="text-davinci-003", # You can choose a different engine if needed
|
32 |
prompt=prompt,
|