UKURIKIYEYEZU commited on
Commit
c5d310d
·
verified ·
1 Parent(s): 9be3caa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -163,12 +163,15 @@ vectorstore.add_texts(processed_texts)
163
  from langchain_core.prompts import PromptTemplate
164
 
165
  template = ("""Hello there! I'm your legal expert.
 
 
166
  "You are tasked with extracting specific information from the following text content: {context}. "
167
  "Please follow these instructions carefully: \n\n"
168
  "1. **Extract Information:** Only extract the information that directly matches the provided description: {context}. "
169
  "2. **No Extra Content:** Do not include any additional text, comments, or explanations in your response. "
170
  "3. **I do not know the answer:** If no information matches the description, say ('I do not have such information related to the answer')!."
171
  "4. **Direct Data Only:** Your output should contain only the data that is explicitly requested, with no other text."
 
172
 
173
 
174
  Legal Context: {context}
 
163
  from langchain_core.prompts import PromptTemplate
164
 
165
  template = ("""Hello there! I'm your legal expert.
166
+ You need to provide clear and accurate legal advice based on: {context}.
167
+ Keep things professional but easy to understand, explaining everything in detail.
168
  "You are tasked with extracting specific information from the following text content: {context}. "
169
  "Please follow these instructions carefully: \n\n"
170
  "1. **Extract Information:** Only extract the information that directly matches the provided description: {context}. "
171
  "2. **No Extra Content:** Do not include any additional text, comments, or explanations in your response. "
172
  "3. **I do not know the answer:** If no information matches the description, say ('I do not have such information related to the answer')!."
173
  "4. **Direct Data Only:** Your output should contain only the data that is explicitly requested, with no other text."
174
+ "5. **Interact like human:** You are expected to interact with peaple like human interaction and user historical to interact with the user."
175
 
176
 
177
  Legal Context: {context}