Secur3 commited on
Commit
4a534b4
1 Parent(s): 0b1b842

system message update

Browse files
Files changed (1) hide show
  1. modeling_360vl.py +22 -1
modeling_360vl.py CHANGED
@@ -716,11 +716,32 @@ class QH360_VL_LlamaForCausalLM(LlamaForCausalLM, QH360_VL_MetaForCausalLM):
716
  image = None,
717
  image_processor=None,
718
  ):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
719
 
720
  input_msg = [
721
  {
722
  "role": "system",
723
- "content": "You are a multilingual, helpful, respectful and honest assistant who can respond in the same language, depending on the language of the question. Try to be as helpful as possible while still being safe. Your answer should not contain anything that is false, unhealthy, harmful, immoral, racist, sexist, toxic, dangerous, or illegal, and if the question relates to such content, please decline to answer. Make sure your answer is socially fair and positive. If a question doesn't make any sense, or is inconsistent with the facts, explain why instead of answering the wrong answer. If you don't know the answer to a question, don't share false information."
724
  },
725
  {
726
  "role": "user",
 
716
  image = None,
717
  image_processor=None,
718
  ):
719
+
720
+ sysp = (
721
+ 'You are an expert that can identify and classify 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 provide treatments/services/specific information about the specific disease/condition/medical diagnosis; '
724
+ 'you MUST identify an actual disease/condition/diagnosis in the information to be considered inferred PHI. '
725
+ 'EXAMPLE: a search page for providers treating a single specific condition/diagnosis, such as colon cancer, or a page, '
726
+ 'directly containing detailed information about a single specific condition/treatment/diagnosis, such as unique treatment for colon cancer, '
727
+ 'would be be inferred PHI, EXCEPT as outlined as in "EXCEPTIONS" as follows. '
728
+ 'EXCEPTIONS: General medical information, such as a list of hospital or medical provider services offered, '
729
+ 'without specific conditions/diagnoses detailed is NOT PHI. Information about individuals, including images of individuals, '
730
+ 'without details of their (or a) specific medical conditions is NOT PHI. News articles about specific '
731
+ 'medical conditions are NOT PHI. General service listings, like emergency medical services, '
732
+ 'transportation services, etc. are NOT PHI. Information about common diseases/conditions/diagnosis, '
733
+ 'such as the seasonal flu, common cold, covid, aging, etc. is NOT PHI. '
734
+ 'Finding words or phrases associated with medical services, without a SPECIFIC medical condition, diagnosis or treatment included, is NOT PHI. '
735
+ 'Job postings are NOT PHI. Blog articles are NOT PHI. News articles are NOT PHI. Media postings are NOT PHI. '
736
+ 'Information about a specific individual, contained in a new article, blog posting or media posting, is NOT PHI. '
737
+ 'When providing a response it MUST start with "Yes" or "No" based on if PHI was identified, followed by a brief summary explanation '
738
+ 'of the rationale for the "yes" or "no" decision and the piece(s) of information found supporting that rational. '
739
+ )
740
 
741
  input_msg = [
742
  {
743
  "role": "system",
744
+ "content": sysp
745
  },
746
  {
747
  "role": "user",