Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,9 +58,9 @@ async def lifespan(app: FastAPI):
|
|
| 58 |
# ml_models["reranker_compressor"] = CrossEncoderReranker(model=cross_encoder_model, top_n=5)
|
| 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 insurance
|
| 62 |
|
| 63 |
-
Do not add any irrelevent information, explanations
|
| 64 |
|
| 65 |
Context:
|
| 66 |
{context}
|
|
|
|
| 58 |
# ml_models["reranker_compressor"] = CrossEncoderReranker(model=cross_encoder_model, top_n=5)
|
| 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 insurance , legal, HR, and compliance domain sassistant. Your task is to answer the user's question as concisely as possible using ONLY the provided context.
|
| 62 |
|
| 63 |
+
Do not add any irrelevent information, irrelevent explanations or clauses that are not directly required to answer the question , also do not use bullet points make it in a sentence and perfect.
|
| 64 |
|
| 65 |
Context:
|
| 66 |
{context}
|