added goal achievment preditions

This commit is contained in:
2024-09-17 22:39:07 +00:00
parent 47a274741f
commit 1bfc773782
10 changed files with 325 additions and 20 deletions
+44
View File
@@ -147,3 +147,47 @@ def predict_next_n_assessments_prompt():
"""
return prompt
def recommend_assessment_frequency_prompt():
return '''
You are provided with the Standard Operating Procedures (SOPs) for various roles within a company. Your task is to collectively recommend the best assessment type and frequency (either weekly, biweekly, or quarterly) for all employees based on the overall nature of the SOPs.
Consider the following when making your recommendation:
- The overall complexity and criticality of the tasks outlined in the SOPs.
- The frequency of updates or changes needed to the roles or procedures.
- The urgency of the responsibilities and their potential impact on the company's performance.
- The balance between the need for regular evaluations and avoiding employee overload.
- The need for continuous monitoring for key goals such as compliance, safety, or mission-critical objectives.
Provide a concise and collective assessment recommendation:
- Assessment Type: [Weekly/Biweekly/Quarterly]
- Frequency: [X weeks/biweeks/quarters]
- Justification: Explain the rationale for choosing the recommended assessment type and frequency based on the overall SOP content.
Example Response:
"Based on the complexity and critical nature of the tasks described in the SOPs, it is recommended that assessments be conducted biweekly for 6 biweeks. This frequency will allow for regular progress reviews without overwhelming employees, while ensuring that critical objectives such as compliance and security are met."
'''
def predict_goal_achievement_probability_prompt():
return '''
You are provided with summary stats of past assessments and general basic information about the company.
Your goal is to predict two things after analyzing the summary statistics and the company info:
1. Goal achievement probability: Predict if the company can meet its goals and vision within the original deadline and the reasoning behind it.
2. Goal achievement probability for new assessment: Predict whether a worker will meet the deadline, and if not, specify the extension needed in weeks or days to complete the assessments.
Example response: -->
{
"goal_achievement": {
"predictions": "Based on the analysis of previous assessments and current data, it is anticipated that the company may not meet its goals by the original deadline.",
"reasoning": "The data indicates that workers are currently falling behind on completing their assessments. With the current rate of progress, it is expected that an extension of approximately 2 weeks beyond the original due date may be required to complete all assessments."
},
"goal_achievement_new_assessment": "Based on previous assessments, it is anticipated that the workers will not be able to complete the assessments on time. They may require an extension of approximately 2 weeks beyond the due date to complete the assessment."
}
Be dynamic in your response and you do not need to write as exactly as it is the example response , just keep the format but your response after the analysis should be dynamic and professional
'''
+10 -7
View File
@@ -1,16 +1,17 @@
def get_sop_extraction_from_doc():
return '''Your task is to extract the "Vision", "Mission", and role-specific Standard Operating Procedures (SOPs) from the provided document.
return '''Your task is to generate Standard Operating Procedures (SOPs) for the verified workers based on the provided document and their positions.
You must extract and categorize the SOPs into three categories: "must", "shall", and "will."
Instructions:
1. **Vision**: Extract the vision of the company or organization.
2. **Mission**: Extract the mission of the company or organization. If not explicitly mentioned, consider the mission as the company's goals.
3. **Role-specific SOPs**:
- Categorize the questions under three categories: "must," "shall," and "will."
- The questions should be directly addressed to the person in the role. Do not reference the role itself in the question.
- If SOPs for the role are not explicitly stated, infer them from the context, but only if there is clear evidence within the document. Do not generate or assume SOPs that are not directly supported by the document.
- If no SOPs are found for the role, return an empty list for each category.
Provide the extracted sections exactly as they appear in the document.'''
3. **Position-specific SOPs**:
- Categorize the SOPs under three categories: "must," "shall," and "will."
- The SOPs should be directly relevant to the verified workers' positions and responsibilities, ensuring that the position names remain exactly the same as provided.
- If multiple workers share the same position, generate a single set of SOPs for that position., Do not repeat it for the same position
- If SOPs for the position are not explicitly stated, infer them from the context, but only if there is clear evidence within the document. Do not generate or assume SOPs that are not directly supported by the document.
- If no SOPs are found for the position, return an empty list for each category.
Use the provided workers' information to ensure the SOPs are tailored to the verified workers.'''
def get_roles_extraction_from_questionnaire():
@@ -345,3 +346,5 @@ def get_sop_for_department_workers():
]
}
'''