mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-03 05:03:12 +08:00
Update local_doc_qa.py
This commit is contained in:
parent
ec677beed0
commit
b9d8824fa5
@ -133,7 +133,7 @@ class LocalDocQA:
|
||||
)
|
||||
|
||||
knowledge_chain.return_source_documents = True
|
||||
|
||||
result = knowledge_chain({"query": query})
|
||||
|
||||
self.llm.history[-1][0] = query
|
||||
return result, self.llm.history
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user