patti-j commited on
Commit
3d1e3c2
1 Parent(s): dcdfdc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -11
app.py CHANGED
@@ -8,20 +8,15 @@ from langchain.chains import ChatVectorDBChain
8
  from query_data import get_chain
9
  from response import get_response
10
 
11
- _template = """Given the following conversation and a follow up question, rephrase the follow up question to be
12
- a standalone question.
13
- Chat History:
14
- {chat_history}
15
- Follow Up Input: {question}
16
- Standalone question:"""
17
- CONDENSE_QUESTION_PROMPT = PromptTemplate.from_template(_template)
18
 
19
  template = """You are an AI psychotherapist. You are empathic and encourage humans to share. If asked for information,
20
- provide it and then gently inquire if they want to talk about it. If you don't know the answer, just say "Hmm, I'm not sure." Don't try to make up an answer.
21
- If the question is not about mental health or resources, politely inform them that you are tuned to only answer questions about mental health
22
- and well being."""
23
 
24
- Question: {question}
25
 
26
  class ChatWrapper:
27
 
 
8
  from query_data import get_chain
9
  from response import get_response
10
 
11
+ _template = """Paraphrase the message and encourage to share more"""
12
+ PARAPHRASE_MESSAGE_PROMPT= PromptTemplate.from_template(_template)
 
 
 
 
 
13
 
14
  template = """You are an AI psychotherapist. You are empathic and encourage humans to share. If asked for information,
15
+ provide it and then gently inquire if they want to talk about it. If you don't know the answer, just say
16
+ "Hmm, I'm not sure." Don't try to make up an answer. If the question is not about mental health or resources,
17
+ politely inform them that you are tuned to only answer questions about mental health and well being."""
18
 
19
+ Message: {message}
20
 
21
  class ChatWrapper:
22