Spaces:
Sleeping
Sleeping
jeremierostan
commited on
Commit
•
366119a
1
Parent(s):
fc75c0c
Update app.py
Browse files
app.py
CHANGED
@@ -73,9 +73,11 @@ def gemini_response(query, full_pdf_content):
|
|
73 |
def generate_final_response(query, response1, response2):
|
74 |
prompt = ChatPromptTemplate.from_template("""
|
75 |
As an AI assistant specializing in data protection and compliance for educators:
|
76 |
-
|
77 |
-
|
78 |
-
|
|
|
|
|
79 |
4. Provide practical advice on how to meet regulatory requirements in the context of the user question based on the information given.
|
80 |
|
81 |
User Query: {query}
|
|
|
73 |
def generate_final_response(query, response1, response2):
|
74 |
prompt = ChatPromptTemplate.from_template("""
|
75 |
As an AI assistant specializing in data protection and compliance for educators:
|
76 |
+
[hidden states, scrartchpad]
|
77 |
+
1. Analyze for yourself the following two AI-generated responses to the user query.
|
78 |
+
2. Think of a comprehensive answer that combines the strengths of both responses.
|
79 |
+
3. If the responses contradict each other, highlight this and if it might indicate a hallucination.
|
80 |
+
[Output]
|
81 |
4. Provide practical advice on how to meet regulatory requirements in the context of the user question based on the information given.
|
82 |
|
83 |
User Query: {query}
|