captain-awesome
commited on
Commit
•
ba7b4e3
1
Parent(s):
1b3ec50
Update app.py
Browse files
app.py
CHANGED
@@ -65,10 +65,13 @@ def get_conversational_rag_chain(retriever_chain,llm):
|
|
65 |
|
66 |
llm=llm
|
67 |
|
|
|
|
|
|
|
68 |
prompt = ChatPromptTemplate.from_messages([
|
69 |
-
("system",
|
70 |
MessagesPlaceholder(variable_name="chat_history"),
|
71 |
-
("user",
|
72 |
])
|
73 |
|
74 |
stuff_documents_chain = create_stuff_documents_chain(llm,prompt)
|
|
|
65 |
|
66 |
llm=llm
|
67 |
|
68 |
+
template = "Answer the user's questions based on the below context:\n\n{context}"
|
69 |
+
human_template = "{input}"
|
70 |
+
|
71 |
prompt = ChatPromptTemplate.from_messages([
|
72 |
+
("system", template),
|
73 |
MessagesPlaceholder(variable_name="chat_history"),
|
74 |
+
("user", human_template),
|
75 |
])
|
76 |
|
77 |
stuff_documents_chain = create_stuff_documents_chain(llm,prompt)
|