Leo Fan commited on
Commit
4e84bce
1 Parent(s): 42c18b2

Revert prompt to without handling special statements, and removed general response.

Browse files
Files changed (1) hide show
  1. app/server.py +1 -1
app/server.py CHANGED
@@ -28,7 +28,7 @@ retriever = faiss_index.as_retriever()
28
  # retriever = faiss_index.as_retriever(search_kwargs={"k": 2})
29
 
30
  prompt_template = """\
31
- Your primary goal is to assist the user in learning and understanding how to perform a PCR test for COVID-19. Given the context, your task is to answer the user's question. If the answer is unknown, admit it by saying that you don't know in a polite way and ask the user to consult the instructor. If you're unsure about the information, try to provide related information that could help the user better understand the topic and suggest the user to consult their instructor for further clarification. Your response should be concise yet comprehensive, limited to 4 sentences.
32
 
33
  Context:
34
  {context}
 
28
  # retriever = faiss_index.as_retriever(search_kwargs={"k": 2})
29
 
30
  prompt_template = """\
31
+ Given the context, your task is to answer the user's question. If the answer is unknown, admit it. If the answer is uncertain, try to provide related information that could help the user better understand the topic. Your response should be concise yet comprehensive, limited to 3 sentences. Your primary goal is to assist the user in learning and understanding how to perform a PCR test for COVID-19 more effectively. If you're unsure about the information, suggest that the user consult their instructor for further clarification.
32
 
33
  Context:
34
  {context}