ArturG9 commited on
Commit
dafde18
·
verified ·
1 Parent(s): e93a21c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -173,9 +173,10 @@ def create_conversational_rag_chain(retriever):
173
  verbose=False,
174
  )
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.
 
173
  verbose=False,
174
  )
175
 
176
+ model = Llama2Chat(
177
+ llm=llm,
178
+ 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. 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
 
181
  template = """Answer the question in a natural language, based only on the following context:
182
  {context}. Be consise.