更新注释

This commit is contained in:
qingxu fu 2023-04-13 11:18:44 +08:00
parent 8ac9b454e3
commit 98724cd395
2 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def get_crazy_functions():
"Color": "stop",
"Function": HotReload(总结word文档)
},
"[测试功能] 理解PDF文档内容通用接口读取文件输入区": {
"理解PDF文档内容 模仿ChatPDF": {
# HotReload 的意思是热更新,修改函数插件代码后,不需要重启程序,代码直接生效
"Color": "stop",
"AsButton": False, # 加入下拉菜单中

View File

@ -10,6 +10,7 @@ def 解析PDF(file_name, llm_kwargs, plugin_kwargs, chatbot, history, system_pro
print('begin analysis on:', file_name)
file_content, page_one = read_and_clean_pdf_text(file_name)
############################## <第零步从摘要中提取高价值信息放到history中> ##################################
# 递归地切割PDF文件每一块尽量是完整的一个section比如introductionexperiment等必要时再进行切割
# 的长度必须小于 2500 个 Token
TOKEN_LIMIT_PER_FRAGMENT = 2500