Update app.py
Browse files
app.py
CHANGED
@@ -176,12 +176,9 @@ def create_conversational_rag_chain(retriever):
|
|
176 |
|
177 |
model = Llama2Chat(
|
178 |
llm=llm,
|
179 |
-
system_message={
|
180 |
-
"content": "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. 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.'"
|
181 |
-
}
|
182 |
)
|
183 |
|
184 |
-
template = """Answer the question in a natural language, based only on the following context:
|
185 |
{context}. Be consise.
|
186 |
Question: {question}
|
187 |
"""
|
|
|
176 |
|
177 |
model = Llama2Chat(
|
178 |
llm=llm,
|
|
|
|
|
|
|
179 |
)
|
180 |
|
181 |
+
template = """You are assistant on question - answer taskas. Answer the question in a natural language, based only on the following context:
|
182 |
{context}. Be consise.
|
183 |
Question: {question}
|
184 |
"""
|