Secur3 commited on
Commit
eaf5e02
·
1 Parent(s): 685181b

system prompt update

Browse files
Files changed (1) hide show
  1. modeling_360vl.py +4 -4
modeling_360vl.py CHANGED
@@ -723,9 +723,9 @@ class QH360_VL_LlamaForCausalLM(LlamaForCausalLM, QH360_VL_MetaForCausalLM):
723
  'that the information MUST directly identify the specific disease/condition/medical diagnosis and MUST provide '
724
  'treatments/services/specific information about the specific disease/condition/medical diagnosis; you MUST identify an actual disease/condition/diagnosis in the information to be considered PHI. '
725
  'EXAMPLE: A search page for providers treating a single specific condition/diagnosis, such as colon cancer, would be PHI EXCEPT as outlined as in "EXCEPTIONS" as follows. '
726
- 'EXAMPLE: A page, directly containing detailed information about a single specific condition/treatment/diagnosis, such as unique treatment for colon cancer, '
727
  'would be be PHI, EXCEPT as outlined as in "EXCEPTIONS" as follows. '
728
- 'EXAMPLE: A patient login portal for a speciality medical provider would be PHI, EXCEPT as outlined as in "EXCEPTIONS" as follows. '
729
  'EXCEPTIONS: General medical information, such as a list of hospital or medical provider services offered, '
730
  'without specific conditions/diagnoses detailed is NOT PHI. '
731
  'EXCEPTIONS: Information about individuals, including images of individuals and those appearing to be in the '
@@ -735,11 +735,11 @@ class QH360_VL_LlamaForCausalLM(LlamaForCausalLM, QH360_VL_MetaForCausalLM):
735
  'EXCEPTIONS: Information about common diseases/conditions/diagnosis, such as the seasonal flu, common cold, covid, aging, etc. is NOT PHI. '
736
  'EXCEPTIONS: Finding words or phrases associated with medical services including medical professions, without a SPECIFIC medical condition, diagnosis or treatment included, is NOT PHI. '
737
  'EXCEPTIONS: Job postings are NOT PHI. Blog articles are NOT PHI. News articles are NOT PHI. Media postings are NOT PHI. '
738
- 'EXCEPTIONS: Information about a specific individual, contained in a news article, blog posting or media posting, is NOT PHI. '
739
  'EXCEPTIONS: Posters and/or event announcments about medical conditions and/or events related to medical conditions, for example a benefit for breast cancer survivors, is NOT PHI. '
740
  'When providing your response it MUST start with "Yes" or "No" based on if PHI was identified in the image, followed by a brief summary explanation '
741
  'of the rationale for the "Yes" or "No" decision and the piece(s) of information found supporting that rational. '
742
- 'If you are unable to definitively determine the presence of PHI based information in the image, then you DID NOT identify PHI and your response should be "No".'
743
  )
744
 
745
  input_msg = [
 
723
  'that the information MUST directly identify the specific disease/condition/medical diagnosis and MUST provide '
724
  'treatments/services/specific information about the specific disease/condition/medical diagnosis; you MUST identify an actual disease/condition/diagnosis in the information to be considered PHI. '
725
  'EXAMPLE: A search page for providers treating a single specific condition/diagnosis, such as colon cancer, would be PHI EXCEPT as outlined as in "EXCEPTIONS" as follows. '
726
+ 'EXAMPLE: A page, directly containing detailed information about a single specific condition/treatment/diagnosis, such as a unique treatment for colon cancer, '
727
  'would be be PHI, EXCEPT as outlined as in "EXCEPTIONS" as follows. '
728
+ 'EXAMPLE: A patient login portal for a speciality medical provider would be PHI. '
729
  'EXCEPTIONS: General medical information, such as a list of hospital or medical provider services offered, '
730
  'without specific conditions/diagnoses detailed is NOT PHI. '
731
  'EXCEPTIONS: Information about individuals, including images of individuals and those appearing to be in the '
 
735
  'EXCEPTIONS: Information about common diseases/conditions/diagnosis, such as the seasonal flu, common cold, covid, aging, etc. is NOT PHI. '
736
  'EXCEPTIONS: Finding words or phrases associated with medical services including medical professions, without a SPECIFIC medical condition, diagnosis or treatment included, is NOT PHI. '
737
  'EXCEPTIONS: Job postings are NOT PHI. Blog articles are NOT PHI. News articles are NOT PHI. Media postings are NOT PHI. '
738
+ 'EXCEPTIONS: Information about a specific individual or individuals, contained in a news article, blog posting or media posting, is NOT PHI. '
739
  'EXCEPTIONS: Posters and/or event announcments about medical conditions and/or events related to medical conditions, for example a benefit for breast cancer survivors, is NOT PHI. '
740
  'When providing your response it MUST start with "Yes" or "No" based on if PHI was identified in the image, followed by a brief summary explanation '
741
  'of the rationale for the "Yes" or "No" decision and the piece(s) of information found supporting that rational. '
742
+ 'You MUST be able to definitively determine the presence of PHI based information in the image to respond "Yes".'
743
  )
744
 
745
  input_msg = [