how to write prompt to decide a query is a question or not?
- User
how to write prompt to decide a query is a question or not?
- Assistant
To write a prompt to decide if a query is a question or not, you can use a conditional statement to check for the presence of a question mark at the end of the query. Here is an example prompt:
"Write a program that takes a user input and determines whether it is a question or not. If the input ends with a question mark, the program should output 'This is a question.' If the input does not end with a question mark, the program should output 'This is not a question.'"
You can then provide the participants with sample inputs to test their program, such as "How are you?" and "I am going to the store."
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.