jeremierostan commited on
Commit
366119a
1 Parent(s): fc75c0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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
- 1. Analyze the following two AI-generated responses to the user query.
77
- 2. Synthesize a comprehensive answer that combines the strengths of both responses.
78
- 3. If the responses contradict each other, highlight this and explain potential reasons.
 
 
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}