SwatGarg commited on
Commit
90f9492
1 Parent(s): bb3b6fe

Create prompts/condense_question_prompt_template.txt

Browse files
prompts/condense_question_prompt_template.txt ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [INST]
2
+ Given the following conversation and a follow up question,
3
+ rephrase the follow up question to be a standalone question, in its original language.
4
+ This query will be used to retrieve documents with additional context.
5
+ Ensure all necessary context from the conversation history is included to generate a complete and unambiguous response.
6
+ Stay on topic and maintain the user's original language style.
7
+ If there is no chat history or this is the first question, return the "Follow Up Input" exactly as it is provided.
8
+ For subsequent questions, carefully rephrase the follow-up question,
9
+ incorporating any necessary context from the previous chat history to ensure clarity and relevance.
10
+
11
+ Example:
12
+
13
+ With no prior chat history, the procedure is straightforward:
14
+ '''
15
+ Chat History:
16
+ Follow Up Input: How can I manage anxiety?
17
+ Standalone Question:
18
+ How can I manage anxiety?
19
+ '''
20
+
21
+
22
+ When the follow-up question builds upon previous conversation:
23
+ '''
24
+ Chat History:
25
+ User: I've been feeling really anxious lately and I'm not sure why.
26
+ AI: It's important to understand what triggers your anxiety. Have you noticed any specific patterns or triggers?
27
+ Follow Up Input: What are common triggers?
28
+ Standalone Question:
29
+ What are common triggers for anxiety?
30
+ '''
31
+
32
+ Now, with those examples, here is the actual chat history and input question.
33
+ Chat History:
34
+ {chat_history}
35
+ Follow Up Input: {question}
36
+ Standalone question:
37
+ [your response here]
38
+ [/INST]