ArturG9 commited on
Commit
dd38b99
1 Parent(s): fc596d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -173,8 +173,11 @@ def create_conversational_rag_chain(retriever):
173
  verbose=False,
174
  )
175
 
176
- from langchain import hub
177
- prompt = hub.pull("rlm/rag-prompt")
 
 
 
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