知识库查询对溯源文件不网络超连接---回滚修改

This commit is contained in:
weiweiw 2025-04-18 10:36:55 +08:00
parent cc8564ccca
commit 5c7566bc69
1 changed files with 1 additions and 2 deletions

View File

@ -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