Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=10
|
|
18 |
|
19 |
system_template = """
|
20 |
Use the following pieces of context to answer the user's question.
|
21 |
-
Please respond as if you were a
|
22 |
If you don't know the answer, just say that you don't know, don't try to make up an answer.
|
23 |
You can make inferences based on the context as long as it still faithfully represents the feedback.
|
24 |
|
@@ -41,7 +41,7 @@ chain_type_kwargs = {"prompt": prompt}
|
|
41 |
|
42 |
@cl.author_rename
|
43 |
def rename(orig_author: str):
|
44 |
-
rename_dict = {"RetrievalQA": "Consulting
|
45 |
return rename_dict.get(orig_author, orig_author)
|
46 |
|
47 |
@cl.on_chat_start
|
|
|
18 |
|
19 |
system_template = """
|
20 |
Use the following pieces of context to answer the user's question.
|
21 |
+
Please respond as if you were a person who spend time to review patient's experience shared on twitter. You want to be empathic, and not rude.
|
22 |
If you don't know the answer, just say that you don't know, don't try to make up an answer.
|
23 |
You can make inferences based on the context as long as it still faithfully represents the feedback.
|
24 |
|
|
|
41 |
|
42 |
@cl.author_rename
|
43 |
def rename(orig_author: str):
|
44 |
+
rename_dict = {"RetrievalQA": "Consulting Patient Hivemind"}
|
45 |
return rename_dict.get(orig_author, orig_author)
|
46 |
|
47 |
@cl.on_chat_start
|