Merge branch 'main' of http://192.168.0.75:3000/BNSTechnologyDevelopment/Langchain-Chatchat
This commit is contained in:
commit
43c82ee797
|
|
@ -540,8 +540,7 @@ def format_reference(kb_name: str, docs: List[Dict], api_base_url: str="") -> Li
|
|||
f"{api_base_url}/knowledge_base/download_doc?" + parameters
|
||||
)
|
||||
page_content = doc.get("page_content")
|
||||
ref = f"""出处 <strong>[{inum + 1}]</strong> <strong>{filename}</strong>\n\n{page_content}\n\n"""
|
||||
# ref = f"""出处 [{inum + 1}] [{filename}]({url}) \n\n{page_content}\n\n"""
|
||||
ref = f"""出处 [{inum + 1}] [{filename}]({url}) \n\n{page_content}\n\n"""
|
||||
source_documents.append(ref)
|
||||
|
||||
return source_documents
|
||||
|
|
|
|||
Loading…
Reference in New Issue