- 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.'''
return'''Your task is to extract the "Roles" from the provided questionnaire responses.
You must identify and categorize the roles based on the information provided.
Instructions:
1. **Roles**: Extract the roles mentioned in the questionnaire.
2. **Vision**: If applicable, extract the vision of the company or organization as it relates to the roles.
3. **Mission**: If applicable, extract the mission of the company or organization as it relates to the roles.
4. **Role-specific SOPs**:
- Identify any role-specific Standard Operating Procedures (SOPs) mentioned in the questionnaire.
- If SOPs for the role are not explicitly stated, infer them from the context, but only if there is clear evidence within the questionnaire. Do not generate or assume SOPs that are not directly supported by the information provided.
- If no roles or SOPs are found, return an empty list for each category.
Provide the extracted roles and any relevant sections exactly as they appear in the questionnaire.'''
return'''Your task is to generate Standard Operating Procedures (SOPs) based on the responses to the questionnaire provided.
You must extract and categorize the SOPs into three categories: "must,""shall," and "will."
Instructions:
1. **Vision or Strategic Direction**: Use the provided project vision or strategic direction to align SOPs with the overall goals of the project.
2. **Roles**: Generate SOPs for the specific roles required for the project.
3. **Responsibilities**: For each role, use the outlined key responsibilities to generate SOPs.
4. **Project Details**: Incorporate any additional project information to ensure the SOPs reflect the full scope of the project.
Role-specific SOPs:
- Categorize the SOPs under three categories: "must,""shall," and "will."
- The SOPs should be directly aligned with the role and responsibilities provided in the questionnaire.
- If SOPs for the role are not explicitly mentioned, infer them from the context of the responsibilities, vision, and project details, but only if there is clear evidence. Do not generate or assume SOPs that are not directly supported by the information provided.
- If no SOPs are found for the role, return an empty list for each category.
Provide the generated SOPs based on the questionnaire responses.'''
returnf"""Your job is to generate Standard Operating Procedures (SOPs) for the role of "{role}" with a focus on the areas "{areas}" based on the following instructions:
Instructions:
Categorization: Organize the SOPs under the selected categories: a checkboxex of the three categories "must" , "shall" and "will"
So use the selected sop types categories: {sop_types}
Direct Instructions: The SOPs should directly address responsibilities, objectives, and challenges related to the area of "{areas}" for the role of "{role}".
Contextual Inference: If SOPs for the area are not explicitly stated, infer them from the role and area context provided.
Empty Lists: If no SOPs are generated, return an empty list for each category.
returnf"""Your task is to generate Standard Operating Procedures (SOPs) for the executive namely: {executive}, based on the provided vision and goals/mission.
- The SOPs should be directly aligned with executive responsibilities and decision-making.
- Ensure the SOPs reflect high-level strategic thinking and leadership expectations.
- If SOPs are not explicitly mentioned, infer them from the context of the vision and goals, but only if there is clear evidence. Do not generate or assume SOPs that are not directly supported by the information provided.
- If no SOPs can be generated, return an empty list for each category.
4. If the executive is specified as "Admin," meaning there is a single executive managing all workers and projects, use the vision and mission to generate SOPs.
5. Ensure that the generated SOPs can mention the company name if known from the document for better clarity.
6. For any exceutive provided , make sure sops is generated if mission and vision is provided
Provide the generated SOPs based on the vision and goals, focusing on executive-level responsibilities and actions"""
return"""Extract vision and mission statements from the document:
1. Analyze for explicit or implicit statements.
2. Vision: Long-term aspirations or ideal future state.
3. Mission: Organization's purpose, core functions, or primary objectives.
4. Include multiple statements if found.
5. Infer from context if not explicit.
6. Format as two lists: vision and mission.
7. Return empty list if none found for either category.
Provide extracted or inferred vision and mission statements."""
''' def get_sop_executive_for_managers():
return Your task is to extract the "Vision", "Mission", and executive-generated Standard Operating Procedures (SOPs) specifically for managers from the provided document.
Instructions:
1. **Vision**: Extract the vision of the company or organization as outlined by the executives.
2. **Mission**: Extract the mission of the company or organization. If not explicitly mentioned, consider the mission as the company's strategic goals.
3. **Executive-generated SOPs for Managers**:
- Categorize the SOPs under three categories: "must,""shall," and "will."
- The SOPs should be specific to the managerial role (e.g., handling team performance, reporting, budgeting, etc.).
- If SOPs for managers are not explicitly stated, infer them from the context provided by the executives, but only if there is clear evidence within the document.
- Do not generate or assume SOPs that are not directly supported by the document or the executive directives.
- If no SOPs are found for managers, return an empty list for each category.
- add header as the starting statment of the sop depending on who the sop is pointing too e.g "Under the inmsights amd control of the develpopment the admin:"