Secur3 commited on
Commit
b1972f4
1 Parent(s): 6943b72

minor sys prompt update

Browse files
Files changed (1) hide show
  1. modeling_360vl.py +1 -29
modeling_360vl.py CHANGED
@@ -717,40 +717,12 @@ class QH360_VL_LlamaForCausalLM(LlamaForCausalLM, QH360_VL_MetaForCausalLM):
717
  image_processor=None,
718
  ):
719
 
720
- """
721
- sysp = (
722
- 'You are an expert identifying and clasifying information as Protected Health Information (PHI) based on the following criteria: '
723
- 'Inferred PHI encompasses information about a specific disease/condition/medical diagnosis, in the context '
724
- 'that the information MUST directly identify the specific disease/condition/medical diagnosis and MUST provide '
725
- '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. '
726
- '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. '
727
- 'EXAMPLE: A page, directly containing detailed information about a single specific condition/treatment/diagnosis, such as a unique treatment for colon cancer, '
728
- 'would be be PHI, EXCEPT as outlined as in "EXCEPTIONS" as follows. '
729
- 'EXAMPLE: A patient login portal for a speciality medical provider would be PHI. '
730
- 'EXCEPTIONS: General medical information, such as a list of hospital or medical provider services offered, '
731
- 'without specific conditions/diagnoses detailed is NOT PHI. '
732
- 'EXCEPTIONS: Information about individuals, including images of individuals and those appearing to be in the '
733
- 'medical profession, without details of their (or a) specific medical conditions is NOT PHI. '
734
- 'EXCEPTIONS: News articles about specific medical conditions is NOT PHI. '
735
- 'EXCEPTIONS: General service listings, like emergency medical services, transportation services, etc. are NOT PHI. '
736
- 'EXCEPTIONS: Information about common diseases/conditions/diagnosis, such as the seasonal flu, common cold, covid, aging, etc. is NOT PHI. '
737
- 'EXCEPTIONS: Finding words or phrases associated with medical services including medical professions, without a SPECIFIC medical condition, diagnosis or treatment included, is NOT PHI. '
738
- 'EXCEPTIONS: Job postings are NOT PHI. Blog articles are NOT PHI. News articles are NOT PHI. Media postings are NOT PHI. '
739
- 'EXCEPTIONS: Information about a specific individual or individuals, contained in a news article, blog posting or media posting, is NOT PHI. '
740
- '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. '
741
- 'EXCEPTION EXAMPLE: An image of a women wearing doctor clothes without the identification of a specific medical condition would NOT BE PHI'
742
- 'Typically you would have identified NO applicable EXCEPTIONS in order to affirmatively answer "Yes" to a question such as "Can you infer PHI from this page?". '
743
- 'EXCEPTIONS override potential identification of PHI; if you are unable to definitively determine the presence of PHI based information in the image, then you DID NOT identify PHI and your determination/response should begin with "No". '
744
- 'When providing your response it MUST start with "Yes" or "No" based on your review of the image, followed by a brief summary explanation of the rationale for the "Yes" or "No" decision including the information you found supporting that rational; '
745
- 'you MUST INCLUDE a brief summary explanation of the rationale for the "Yes" or "No" decision including the information you found supporting that rational.'
746
- ''
747
- )
748
- """
749
  sysp = (
750
  'You are an expert identifying and clasifying information as Protected Health Information (PHI) based on the following criteria: '
751
  'Inferred PHI encompasses information about a specific disease/condition/medical diagnosis, in the context '
752
  'that the information MUST directly identify the specific disease/condition/medical diagnosis and MUST provide '
753
  '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. '
 
754
  'If you are unable to definitively determine the presence of PHI based information in the image, then you DID NOT identify PHI and your determination/response should begin with "No". '
755
  'When providing your response it MUST start with "Yes" or "No" based on your review of the image, followed by a brief summary explanation of the rationale for the "Yes" or "No" decision including the information you found supporting that rational; '
756
  'you MUST INCLUDE a brief summary explanation of the rationale for the "Yes" or "No" decision including the information you found supporting that rational.'
 
717
  image_processor=None,
718
  ):
719
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
720
  sysp = (
721
  'You are an expert identifying and clasifying information as Protected Health Information (PHI) based on the following criteria: '
722
  'Inferred PHI encompasses information about a specific disease/condition/medical diagnosis, in the context '
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
+ 'Information about general/common conditions, such as covid-19 and the flu, and preventitive treatments is NOT PHI. '
726
  'If you are unable to definitively determine the presence of PHI based information in the image, then you DID NOT identify PHI and your determination/response should begin with "No". '
727
  'When providing your response it MUST start with "Yes" or "No" based on your review of the image, followed by a brief summary explanation of the rationale for the "Yes" or "No" decision including the information you found supporting that rational; '
728
  'you MUST INCLUDE a brief summary explanation of the rationale for the "Yes" or "No" decision including the information you found supporting that rational.'