Update app.py
Browse files
app.py
CHANGED
@@ -173,8 +173,11 @@ def create_conversational_rag_chain(retriever):
|
|
173 |
verbose=False,
|
174 |
)
|
175 |
|
176 |
-
|
177 |
-
|
|
|
|
|
|
|
178 |
|
179 |
rag_chain = prompt | llm | StrOutputParser()
|
180 |
|
|
|
173 |
verbose=False,
|
174 |
)
|
175 |
|
176 |
+
template = """Answer the question based only on the following context:
|
177 |
+
{context}
|
178 |
+
Question: {question}
|
179 |
+
"""
|
180 |
+
prompt = ChatPromptTemplate.from_template(template)
|
181 |
|
182 |
rag_chain = prompt | llm | StrOutputParser()
|
183 |
|