Update app.py
Browse files
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=
|
174 |
repeat_penalty=1.5,
|
175 |
-
last_n_tokens_size =
|
176 |
callback_manager=callback_manager,
|
177 |
verbose=False,
|
178 |
)
|
179 |
|
180 |
-
template = """Answer the question
|
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 |
"""
|