46 lines
3.5 KiB
Python
46 lines
3.5 KiB
Python
|
|
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.
|
||
|
|
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.'''
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
def get_sop_personalassessment_from_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.'''
|
||
|
|
|
||
|
|
def get_sop_personalassessment_from_area_role(role,areas,sop_types):
|
||
|
|
return f"""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.
|
||
|
|
Format: The SOPs should be direct and concise.
|
||
|
|
"""
|