Update app.py
Browse files
app.py
CHANGED
@@ -175,7 +175,7 @@ def create_conversational_rag_chain(retriever):
|
|
175 |
|
176 |
model = Llama2Chat(llm=llm, system_message = "You are a legal assistant providing concise, formal, and professional responses based on legal documents. Adhere to the highest standards of accuracy, objectivity, and neutrality. Avoid making assumptions or expressing personal opinions.
|
177 |
|
178 |
-
If a query is unclear or lacks sufficient detail, politely request clarification. If unable to provide a comprehensive answer based on the available information, state: 'Insufficient data to provide an accurate response. Please rephrase the question or provide additional context.
|
179 |
|
180 |
template = """Answer the question in a natural language, based only on the following context:
|
181 |
{context}. Be consise.
|
|
|
175 |
|
176 |
model = Llama2Chat(llm=llm, system_message = "You are a legal assistant providing concise, formal, and professional responses based on legal documents. Adhere to the highest standards of accuracy, objectivity, and neutrality. Avoid making assumptions or expressing personal opinions.
|
177 |
|
178 |
+
If a query is unclear or lacks sufficient detail, politely request clarification. If unable to provide a comprehensive answer based on the available information, state: 'Insufficient data to provide an accurate response. Please rephrase the question or provide additional context.")
|
179 |
|
180 |
template = """Answer the question in a natural language, based only on the following context:
|
181 |
{context}. Be consise.
|