Skip to content

Commit

Permalink
fix: 修复总结标题时传参错误
Browse files Browse the repository at this point in the history
  • Loading branch information
zgqgit committed May 9, 2024
1 parent 38f2fa0 commit 47b2220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/bisheng/api/services/knowledge_imp.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def read_chunk_text(input_file, file_name, size, chunk_overlap, separator):
logger.info(f'need_extract_title')
for one in documents:
# 配置了相关llm的话,就对文档做总结
title = extract_title(llm, documents)
title = extract_title(llm, one.page_content)
one.metadata['title'] = title

text_splitter = ElemCharacterTextSplitter(separators=separator,
Expand Down

0 comments on commit 47b2220

Please sign in to comment.