Update functions.py
Browse files- functions.py +2 -2
functions.py
CHANGED
@@ -87,7 +87,7 @@ def load_prompt():
|
|
87 |
----------------
|
88 |
{context}"""
|
89 |
|
90 |
-
prompt =
|
91 |
|
92 |
return prompt
|
93 |
|
@@ -563,7 +563,7 @@ def embed_text(query,_docsearch):
|
|
563 |
memory = memory,
|
564 |
return_source_documents=True)
|
565 |
|
566 |
-
chain.combine_docs_chain.llm_chain.prompt.messages[0] = load_prompt()
|
567 |
|
568 |
answer = chain({"question": query})
|
569 |
|
|
|
87 |
----------------
|
88 |
{context}"""
|
89 |
|
90 |
+
prompt = system_template
|
91 |
|
92 |
return prompt
|
93 |
|
|
|
563 |
memory = memory,
|
564 |
return_source_documents=True)
|
565 |
|
566 |
+
chain.combine_docs_chain.llm_chain.prompt.messages[0] = SystemMessagePromptTemplate(load_prompt())
|
567 |
|
568 |
answer = chain({"question": query})
|
569 |
|