added questions generator
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
def get_questions_prompt():
|
||||
# Header part of the prompt, explaining the context
|
||||
prompt = """
|
||||
You are generating a variable number of assessment questions for different assessment types, which can be daily, weekly, biweekly, etc. The assessment frequency and the specific frequency number should be taken into account when generating the questions.
|
||||
For a particular assessment, based on the type (e.g., daily, weekly, biweekly) and total duration (e.g., if it is weekly and the total duration is 6 weeks, generate at least 20 questions weekly for up to six weeks).
|
||||
Each question will be based on the SOPs of specific workers in different departments, and the questions should vary depending on the assessment frequency type and frequency number.
|
||||
The goal of the assessment is to focus on the progress of the tasks outlined in each worker's SOPs.
|
||||
Make sure each question is relevant to the worker's SOP, and attach a tag to each question indicating the topic area (e.g., communication, timeline, development).
|
||||
The questions should become more detailed or challenging as the assessment progresses over time.
|
||||
If either the name or role of the assigned person is available in the SOP, use it to formulate the questions.
|
||||
|
||||
Input:
|
||||
assessment type: (e.g., daily, weekly, biweekly)
|
||||
frequency type: (e.g., daily, weekly, biweekly)
|
||||
frequency number: (e.g., day 3, week 2, biweekly 1)
|
||||
total duration: (e.g., 6 weeks, 12 days)
|
||||
SOPs of the assessment:
|
||||
|
||||
Instructions:
|
||||
|
||||
1. Review the SOPs of the assessment and generate questions for the workers based on the frequency type, frequency number, and topic areas.
|
||||
2. Regardless of the assement type, always use 1,2,3 for the frequency numbering, nothing else
|
||||
Example response:
|
||||
|
||||
questions
|
||||
{
|
||||
"questions": [
|
||||
{
|
||||
|
||||
"frequency_number": "2",
|
||||
"questions": [
|
||||
{
|
||||
"assigned_to": "person name or role",
|
||||
"role": "person role or name",
|
||||
"question": "e.g., Is the internal project team being followed according to the SOP?"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
"frequency_number": "3",
|
||||
"questions": [
|
||||
{
|
||||
"assigned_to": "person name or role",
|
||||
"role": "person role or name",
|
||||
"question": "e.g., Have communication protocols been followed for the task at hand?"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
"""
|
||||
return prompt
|
||||
Reference in New Issue
Block a user