ArturG9 commited on
Commit
8e064c2
·
verified ·
1 Parent(s): 8db461d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -170,14 +170,14 @@ def create_conversational_rag_chain(retriever):
170
  temperature=0.0,
171
  n_ctx=22000,
172
  n_batch=2000,
173
- max_tokens=250,
174
  repeat_penalty=1.5,
175
- last_n_tokens_size = 250,
176
  callback_manager=callback_manager,
177
  verbose=False,
178
  )
179
 
180
- template = """Answer the question in a natural language, based only on context:
181
  {context}. Be consise.
182
  Question: {question}
183
  """
 
170
  temperature=0.0,
171
  n_ctx=22000,
172
  n_batch=2000,
173
+ max_tokens=200,
174
  repeat_penalty=1.5,
175
+ last_n_tokens_size = 200,
176
  callback_manager=callback_manager,
177
  verbose=False,
178
  )
179
 
180
+ template = """Answer the question using English language, based only on context:
181
  {context}. Be consise.
182
  Question: {question}
183
  """