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
Copy file name to clipboardExpand all lines: app/backend/src/main/java/com/microsoft/openai/samples/rag/chat/approaches/semantickernel/JavaSemanticKernelWithMemoryChatApproach.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,7 @@ public RAGResponse run(ChatGPTConversation questionOrConversation, RAGOptions op
Copy file name to clipboardExpand all lines: app/backend/src/main/resources/semantickernel/Plugins/RAG/AnswerConversation/skprompt.txt
+19-3Lines changed: 19 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,13 @@ For tabular information return it as an html table. Do not return markdown forma
5
5
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.
6
6
If you cannot answer using the sources below, say you don't know.
7
7
8
+
If SuggestFollowUpQuestions is true then after answering question, also generate three very brief follow-up questions that the user would likely ask next.
9
+
Use double angle brackets to reference the questions, e.g. <<Are there exclusions for prescriptions?>>.
10
+
Try not to repeat questions that have already been asked.
11
+
Only generate questions and do not generate any text before or after the questions, such as 'Next Questions'.
12
+
13
+
If SuggestFollowUpQuestions is false, do not generate extra questions.
14
+
8
15
[EXAMPLES]
9
16
[EXAMPLE 1]
10
17
[INFORMATION]
@@ -14,7 +21,12 @@ info3.pdf: Overlake is the name of the area that includes a park and ride near B
14
21
info4.pdf: In-network institutions include Overlake, Swedish and others in the region
15
22
[END INFORMATION]
16
23
Question: What is the deductible for the employee plan for a visit to Overlake in Bellevue?
17
-
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].
24
+
SuggestFollowUpQuestions: true
25
+
Answer:
26
+
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].
27
+
<<What other locations are in-network for the employee plan?>>
28
+
<<Are there any limitations on the number of visits to a provider?>>
29
+
<<Are there any exclusions for prescriptions?>>
18
30
[END EXAMPLE 1]
19
31
20
32
@@ -26,7 +38,9 @@ info3.pdf: Overlake is the name of the area that includes a park and ride near B
26
38
info4.pdf: In-network institutions include Overlake, Swedish and others in the region
27
39
[END INFORMATION]
28
40
Question: what are the responsibilities of the product manager?
29
-
Answer: I do not have enough information to answer that.
41
+
SuggestFollowUpQuestions: false
42
+
Answer:
43
+
I do not have enough information to answer that.
30
44
[END EXAMPLE 2]
31
45
[END EXAMPLES]
32
46
@@ -35,4 +49,6 @@ Answer: I do not have enough information to answer that.
0 commit comments