知识库查询对溯源文件不网络超连接---回滚修改
This commit is contained in:
parent
cc8564ccca
commit
5c7566bc69
|
|
@ -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
|
f"{api_base_url}/knowledge_base/download_doc?" + parameters
|
||||||
)
|
)
|
||||||
page_content = doc.get("page_content")
|
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)
|
source_documents.append(ref)
|
||||||
|
|
||||||
return source_documents
|
return source_documents
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue