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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -175,7 +175,7 @@ def create_conversational_rag_chain(retriever):
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:
 
175
 
176
  model = Llama2Chat(
177
  llm=llm,
178
+ system_message=SystemMessage(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.'")
179
  )
180
 
181
  template = """Answer the question in a natural language, based only on the following context: