Spaces:
Running
Running
app17
Browse files
app.py
CHANGED
@@ -85,7 +85,6 @@ system_prompt = SystemMessagePromptTemplate.from_template(template)
|
|
85 |
qa_prompt = ChatPromptTemplate(
|
86 |
messages=[
|
87 |
system_prompt,
|
88 |
-
MessagesPlaceholder(variable_name="chat_history"),
|
89 |
HumanMessagePromptTemplate.from_template("{question}")
|
90 |
]
|
91 |
)
|
@@ -107,7 +106,7 @@ qa_chain = ConversationalRetrievalChain.from_llm(
|
|
107 |
llm = llm,
|
108 |
memory = memory,
|
109 |
retriever = retriever,
|
110 |
-
verbose =
|
111 |
combine_docs_chain_kwargs={'prompt': qa_prompt},
|
112 |
get_chat_history = lambda h : h
|
113 |
)
|
|
|
85 |
qa_prompt = ChatPromptTemplate(
|
86 |
messages=[
|
87 |
system_prompt,
|
|
|
88 |
HumanMessagePromptTemplate.from_template("{question}")
|
89 |
]
|
90 |
)
|
|
|
106 |
llm = llm,
|
107 |
memory = memory,
|
108 |
retriever = retriever,
|
109 |
+
verbose = False,
|
110 |
combine_docs_chain_kwargs={'prompt': qa_prompt},
|
111 |
get_chat_history = lambda h : h
|
112 |
)
|