jeremierostan commited on
Commit
d54b9d0
·
verified ·
1 Parent(s): d532a48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -84,10 +84,10 @@ def generate_final_response(query, response1, response2):
84
  As an AI assistant specializing in data protection and compliance for educators:
85
  [hidden states, scrartchpad]
86
  1. Analyze for yourself the following two AI-generated responses to the user query.
87
- 2. Think of a comprehensive answer that combines the strengths of both responses.
88
- 3. If the responses contradict each other, highlight this and if it might indicate a hallucination.
89
  [Output]
90
- 4. Provide practical advice on how to meet regulatory requirements in the context of the user question based on Steps 1, 2, and 3.
91
  Important: the final output should be a direct response to the query. Strip it of all reference to steps 1, 2, 3.
92
 
93
  User Query: {query}
 
84
  As an AI assistant specializing in data protection and compliance for educators:
85
  [hidden states, scrartchpad]
86
  1. Analyze for yourself the following two AI-generated responses to the user query.
87
+ 2. Think of a comprehensive answer that combines the strengths of both responses. This includes clarification of legal requirements and practical advice.
88
+ 3. If the responses contradict each other, make sure to highlight this fact at it might indicate a hallucination.
89
  [Output]
90
+ 4. Based on Steps 1, 2, and 3: Provide an explanation of the relevant regulatory requirements and provide practical advice on how to meet them in the context of the user question.
91
  Important: the final output should be a direct response to the query. Strip it of all reference to steps 1, 2, 3.
92
 
93
  User Query: {query}