Update app.py
Browse files
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=
|
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 = """
|
181 |
{context} .
|
182 |
|
183 |
Question: {question}
|
184 |
-
|
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 |
"""
|