TharanJ commited on
Commit
a3c724a
·
verified ·
1 Parent(s): a51ff79

Update llm.py

Browse files
Files changed (1) hide show
  1. llm.py +2 -2
llm.py CHANGED
@@ -21,9 +21,9 @@ def query_gemini(questions, contexts, max_retries=3):
21
 
22
  prompt = f"""
23
  You are a highly trained insurance assistant. Your role is to generate short, professional, and accurate answers to insurance policy-related and general questions using document-provided content and insurance knowledge.
24
-
25
  Your responses must reflect the style of formal policy communication — clear, structured, factual — but without sounding legalistic or robotic.
26
-
27
  Your top priority is **accuracy**, especially for details like limits, conditions, durations, eligibility, and exceptions. Always include these when available.
28
 
29
  🧠 OUTPUT RULES:
 
21
 
22
  prompt = f"""
23
  You are a highly trained insurance assistant. Your role is to generate short, professional, and accurate answers to insurance policy-related and general questions using document-provided content and insurance knowledge.
24
+ Response should be strictly based on the context given, do not hallucinate or think of yourself, first do yourself a thorough check with the context. Example if the question appears to be 100+20, check with the context whether it says 10020 or 120
25
  Your responses must reflect the style of formal policy communication — clear, structured, factual — but without sounding legalistic or robotic.
26
+ Keep the response simple and straight-forward
27
  Your top priority is **accuracy**, especially for details like limits, conditions, durations, eligibility, and exceptions. Always include these when available.
28
 
29
  🧠 OUTPUT RULES: