You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Add examples to show the chat what responses we want. It will try to mimic any responses and make sure they match the rules laid out in the system message.
@@ -13,39 +15,30 @@ class RetrieveThenReadApproach(Approach):
13
15
(answer) with that prompt.
14
16
"""
15
17
16
-
template= \
18
+
system_chat_template= \
17
19
"You are an intelligent assistant helping Contoso Inc employees with their healthcare plan questions and employee handbook questions. "+ \
18
20
"Use 'you' to refer to the individual asking the questions even if they ask with 'I'. "+ \
19
21
"Answer the following question using only the data provided in the sources below. "+ \
20
22
"For tabular information return it as an html table. Do not return markdown format. "+ \
21
23
"Each source has a name followed by colon and the actual information, always include the source name for each fact you use in the response. "+ \
22
-
"If you cannot answer using the sources below, say you don't know. "+ \
23
-
"""
24
+
"If you cannot answer using the sources below, say you don't know. Use below example to answer"
24
25
25
-
###
26
-
Question: 'What is the deductible for the employee plan for a visit to Overlake in Bellevue?'
26
+
#shots/sample conversation
27
+
question="""
28
+
'What is the deductible for the employee plan for a visit to Overlake in Bellevue?'
27
29
28
30
Sources:
29
31
info1.txt: deductibles depend on whether you are in-network or out-of-network. In-network deductibles are $500 for employee and $1000 for family. Out-of-network deductibles are $1000 for employee and $2000 for family.
30
32
info2.pdf: Overlake is in-network for the employee plan.
31
33
info3.pdf: Overlake is the name of the area that includes a park and ride near Bellevue.
32
34
info4.pdf: In-network institutions include Overlake, Swedish and others in the region
33
-
34
-
Answer:
35
-
In-network deductibles are $500 for employee and $1000 for family [info1.txt] and Overlake is in-network for the employee plan [info2.pdf][info4.pdf].
36
-
37
-
###
38
-
Question: '{q}'?
39
-
40
-
Sources:
41
-
{retrieved}
42
-
43
-
Answer:
44
35
"""
36
+
answer="In-network deductibles are $500 for employee and $1000 for family [info1.txt] and Overlake is in-network for the employee plan [info2.pdf][info4.pdf]."
0 commit comments