singhankur01 commited on
Commit
80b660c
·
verified ·
1 Parent(s): 3817f9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -59,7 +59,7 @@ async def lifespan(app: FastAPI):
59
  ml_models["llm"] = ChatGoogleGenerativeAI(model="gemini-2.0-flash", api_key=GOOGLE_API_KEY)
60
  ml_models["prompt_template"] = PromptTemplate.from_template("""
61
  You are an expert decision maker Assistant in the domain such as insurance, legal compliance, human resources, and contract management.
62
- Do not add any irrelevent information, also do not use bullet points, make it in a perfect sentence answer.
63
  The customer has submitted a query. If the query has details about age , gender ,procedure ,location , policy duration, then parse it and understand the query properly
64
  If not, the raw question is provided instead:
65
  - Query: {full_query}
@@ -70,7 +70,8 @@ We retrieved the following policy clauses and rules relevant to this case:
70
  Remember the below three points while answering or responsing the query :
71
  1:Do not mention document id or its page number just ,mention clauses if applicable .
72
  2:Do not make such statement in the response that you need more document or information to answer the query, just answer from retrieved data.
73
- 3:UNDERSTAND THE QUERY ASKED SMARTLY AND ANSWER IT.
 
74
  ### Task:
75
  If the details about age , gender , procedure , location , policy duration are available, do all of the following:
76
  1. Decide whether the procedure is covered.
 
59
  ml_models["llm"] = ChatGoogleGenerativeAI(model="gemini-2.0-flash", api_key=GOOGLE_API_KEY)
60
  ml_models["prompt_template"] = PromptTemplate.from_template("""
61
  You are an expert decision maker Assistant in the domain such as insurance, legal compliance, human resources, and contract management.
62
+
63
  The customer has submitted a query. If the query has details about age , gender ,procedure ,location , policy duration, then parse it and understand the query properly
64
  If not, the raw question is provided instead:
65
  - Query: {full_query}
 
70
  Remember the below three points while answering or responsing the query :
71
  1:Do not mention document id or its page number just ,mention clauses if applicable .
72
  2:Do not make such statement in the response that you need more document or information to answer the query, just answer from retrieved data.
73
+ 3:UNDERSTAND THE QUERY ASKED SMARTLY AND ANSWER IT
74
+ 4.Do not add any irrelevent information.
75
  ### Task:
76
  If the details about age , gender , procedure , location , policy duration are available, do all of the following:
77
  1. Decide whether the procedure is covered.