bluenevus commited on
Commit
38f2b04
·
verified ·
1 Parent(s): 14fb127

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -40,7 +40,7 @@ def process_document(contents: str, filename: str) -> str:
40
  def generate_outline(text: str, instructions: str) -> str:
41
  prompt = f"""
42
  Analyze the following Project Work Statement (PWS) and create an outline
43
- focusing on sections L&M. Extract the main headers, subheaders, and specific
44
  requirements in each section. Pay special attention to requirements indicated
45
  by words like "shall", "will", "must", and similar imperative language.
46
 
@@ -65,9 +65,9 @@ def generate_pink_team_document(outline: str, instructions: str) -> str:
65
 
66
  Create a detailed response document as if MicroHealth is responding to this PWS.
67
  Follow these guidelines:
68
- 1. Use Wikipedia style writing with active voice.
69
  2. For each requirement, describe in detail how MicroHealth will innovate to address it.
70
- 3. Explain the industry best practices that will be applied.
71
  4. Provide measurable outcomes for the customer.
72
  5. Limit the use of bullet points and write predominantly in paragraph format.
73
  6. Ensure a logical flow of steps taken by MicroHealth for each requirement.
@@ -92,6 +92,7 @@ def evaluate_compliance(document: str, requirements: str) -> str:
92
  2. Suggestions on how MicroHealth can better respond to the requirements
93
  3. Best industry practices that should be applied
94
  4. Measurable outcomes that should be included
 
95
 
96
  Format the report clearly by section number.
97
  """
 
40
  def generate_outline(text: str, instructions: str) -> str:
41
  prompt = f"""
42
  Analyze the following Project Work Statement (PWS) and create an outline
43
+ focusing on sections the indicate specific tasks and L&M (for compliance and writing guide). Extract the main headers, subheaders, and specific
44
  requirements in each section. Pay special attention to requirements indicated
45
  by words like "shall", "will", "must", and similar imperative language.
46
 
 
65
 
66
  Create a detailed response document as if MicroHealth is responding to this PWS.
67
  Follow these guidelines:
68
+ 1. Use Wikipedia style writing with active voice. Be firm with the approach, no soft words like could be, may be, should, might. Use definitve language.
69
  2. For each requirement, describe in detail how MicroHealth will innovate to address it.
70
+ 3. Explain the industry best practices that will be applied and the workflow to accomplish the steps in the best practice to address the requirement.
71
  4. Provide measurable outcomes for the customer.
72
  5. Limit the use of bullet points and write predominantly in paragraph format.
73
  6. Ensure a logical flow of steps taken by MicroHealth for each requirement.
 
92
  2. Suggestions on how MicroHealth can better respond to the requirements
93
  3. Best industry practices that should be applied
94
  4. Measurable outcomes that should be included
95
+ 5. Organize by document section headers and numbers
96
 
97
  Format the report clearly by section number.
98
  """