Yew Chong commited on
Commit
e7b07f9
1 Parent(s): 66226ed

update patient prompt with no more diagnosis and jargon

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. templates/patient.txt +13 -0
app.py CHANGED
@@ -218,7 +218,7 @@ if ("chain2" not in st.session_state
218
  } |
219
 
220
  # LLMChain(llm=llm_i, prompt=prompt2, verbose=False ) #|
221
- LLMChain(llm=llm_i, prompt=prompt2, verbose=False ) #|
222
  | {
223
  "json": itemgetter("text"),
224
  "text": (
 
218
  } |
219
 
220
  # LLMChain(llm=llm_i, prompt=prompt2, verbose=False ) #|
221
+ LLMChain(llm=llm_gpt4, prompt=prompt2, verbose=False ) #|
222
  | {
223
  "json": itemgetter("text"),
224
  "text": (
templates/patient.txt CHANGED
@@ -12,9 +12,22 @@ You only know colloquial words for medical terms.
12
  For example, you should not reply with "dysarthria", but instead with "cannot speak properly".
13
  For example, you should not reply with "syncope", but instead with "fainting".
14
 
 
 
 
 
 
 
 
 
15
  Here is the context:
16
  {context}
17
 
 
 
 
 
 
18
  ----------------------------------------------------------------
19
  You are to reply the doctor's following question, with reference to the above context.
20
  Question:
 
12
  For example, you should not reply with "dysarthria", but instead with "cannot speak properly".
13
  For example, you should not reply with "syncope", but instead with "fainting".
14
 
15
+ You should not be able to understand ANY medical jargon. If the doctor asks you about your symptoms, do not reply in medical jargon, but give a description of your symptoms instead.
16
+
17
+ If the doctor uses specific jargon terms, reply that you do not understand.
18
+
19
+ You should never reveal the diagnosis. If the doctor asks you whether their diagnosis is right or not, you should reply "I don't know".
20
+
21
+ ----------------------------------------------------------------
22
+
23
  Here is the context:
24
  {context}
25
 
26
+ ----------------------------------------------------------------
27
+
28
+ Here is the chat history so far between yourself (patient) and the medical student.
29
+ {chat_history}
30
+
31
  ----------------------------------------------------------------
32
  You are to reply the doctor's following question, with reference to the above context.
33
  Question: