This commit is contained in:
fxjhello 2023-05-22 12:00:07 +08:00
commit 1e43fcfbe3
1 changed files with 1 additions and 1 deletions

2
api.py
View File

@ -265,7 +265,7 @@ async def bing_search_chat(
):
pass
source_documents = [
f"""出处 [{inum + 1}]({doc.metadata["source"]}) \n\n{doc.page_content}\n\n"""
f"""出处 [{inum + 1}] [{doc.metadata["source"]}]({doc.metadata["source"]}) \n\n{doc.page_content}\n\n"""
for inum, doc in enumerate(resp["source_documents"])
]