Update app.py
Browse files
app.py
CHANGED
@@ -174,19 +174,10 @@ def create_conversational_rag_chain(retriever):
|
|
174 |
verbose=False,
|
175 |
)
|
176 |
|
177 |
-
|
178 |
-
|
179 |
-
Make answer in Enlish Language.\
|
180 |
-
Make answer based on context .\
|
181 |
-
If you don't know the answer, say " Please provide more details about your question ." \
|
182 |
|
183 |
-
|
184 |
-
{context}"""
|
185 |
-
|
186 |
-
|
187 |
-
answer_prompt = ChatPromptTemplate.from_template(qa_system_prompt)
|
188 |
-
|
189 |
-
rag_chain = answer_prompt | llm | StrOutputParser()
|
190 |
|
191 |
|
192 |
return rag_chain
|
|
|
174 |
verbose=False,
|
175 |
)
|
176 |
|
177 |
+
from langchain import hub
|
178 |
+
prompt = hub.pull("rlm/rag-prompt")
|
|
|
|
|
|
|
179 |
|
180 |
+
rag_chain = prompt | llm | StrOutputParser()
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
|
182 |
|
183 |
return rag_chain
|