知识库查询对溯源文件不网络超连接
This commit is contained in:
parent
c897a1722f
commit
c6bb3b4ffd
|
|
@ -540,7 +540,8 @@ 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"""出处 [{inum + 1}] [{filename}]({url}) \n\n{page_content}\n\n"""
|
||||
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"""
|
||||
source_documents.append(ref)
|
||||
|
||||
return source_documents
|
||||
|
|
|
|||
Loading…
Reference in New Issue