YoniFriedman commited on
Commit
0f79f77
·
verified ·
1 Parent(s): b1ba487

Update prompt

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -13,15 +13,16 @@ llm = OpenAI(temperature=0.0, model="gpt-3.5-turbo", max_tokens=512)
13
  PERSIST_DIR = "arv_metadata"
14
  storage_context = StorageContext.from_defaults(persist_dir=PERSIST_DIR)
15
  index = load_index_from_storage(storage_context)
16
- query_engine = index.as_query_engine(similarity_top_k=3, llm=OpenAI(model="gpt-3.5-turbo"))
17
 
18
 
19
  preamble = (" The person asking the following prompt is a person living with HIV in Kenya."
20
  " For every response, recognize that they already have HIV and do not suggest that they have to get tested"
21
  " for HIV or take post-exposure prophylaxis, as that is not relevant, though their partners perhaps should."
22
  " Do not suggest anything that is not relevant to someone who already has HIV."
23
- # " They are asking questions through a mobile application called Nishauri"
24
- # " through which they can see their lab results, appointment histories, and upcoming appointments."
 
25
  " Here is some information that is authoritative and should guide responses, when relevant."
26
  " For questions about viral load, be sure to provide specific information"
27
  " about cutoffs for viral load categories. Under 50 copies/ml is low detectable level,"
 
13
  PERSIST_DIR = "arv_metadata"
14
  storage_context = StorageContext.from_defaults(persist_dir=PERSIST_DIR)
15
  index = load_index_from_storage(storage_context)
16
+ query_engine = index.as_query_engine(similarity_top_k=3, llm=llm)
17
 
18
 
19
  preamble = (" The person asking the following prompt is a person living with HIV in Kenya."
20
  " For every response, recognize that they already have HIV and do not suggest that they have to get tested"
21
  " for HIV or take post-exposure prophylaxis, as that is not relevant, though their partners perhaps should."
22
  " Do not suggest anything that is not relevant to someone who already has HIV."
23
+ " They are asking questions through a mobile application called Nishauri"
24
+ " through which they can see their lab results, appointment histories, and upcoming appointments."
25
+ " Questions about those topics should be answered based on Nishauri user guide."
26
  " Here is some information that is authoritative and should guide responses, when relevant."
27
  " For questions about viral load, be sure to provide specific information"
28
  " about cutoffs for viral load categories. Under 50 copies/ml is low detectable level,"