ArturG9 commited on
Commit
f1a1fb6
·
verified ·
1 Parent(s): 36776c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -168,7 +168,7 @@ def create_conversational_rag_chain(retriever):
168
  seed = 41,
169
  n_gpu_layers=0,
170
  temperature=0.0,
171
- n_ctx=22000,
172
  n_batch=2000,
173
  max_tokens=200,
174
  repeat_penalty=1.6,
@@ -177,11 +177,11 @@ def create_conversational_rag_chain(retriever):
177
  verbose=False,
178
  )
179
 
180
- template = """You are an assistant for question-answering tasks. Answer the question based only on the following context:
181
  {context} .
182
 
183
  Question: {question}
184
- Use three sentences maximum, keep the answer concise.
185
 
186
  Answer:
187
  """
 
168
  seed = 41,
169
  n_gpu_layers=0,
170
  temperature=0.0,
171
+ n_ctx=5000,
172
  n_batch=2000,
173
  max_tokens=200,
174
  repeat_penalty=1.6,
 
177
  verbose=False,
178
  )
179
 
180
+ template = """Answer the question based only on the following context:
181
  {context} .
182
 
183
  Question: {question}
184
+
185
 
186
  Answer:
187
  """