镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 14:36:48 +00:00
adjust rag
这个提交包含在:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -161,6 +161,5 @@ temp.*
|
|||||||
objdump*
|
objdump*
|
||||||
*.min.*.js
|
*.min.*.js
|
||||||
TODO
|
TODO
|
||||||
|
|
||||||
experimental_mods
|
experimental_mods
|
||||||
search_results
|
search_results
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ def get_crazy_functions():
|
|||||||
"多媒体智能体": {
|
"多媒体智能体": {
|
||||||
"Group": "智能体",
|
"Group": "智能体",
|
||||||
"Color": "stop",
|
"Color": "stop",
|
||||||
"AsButton": True,
|
"AsButton": False,
|
||||||
"Info": "【仅测试】多媒体任务",
|
"Info": "【仅测试】多媒体任务",
|
||||||
"Function": HotReload(多媒体任务),
|
"Function": HotReload(多媒体任务),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -95,9 +95,6 @@ def Rag问答(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, u
|
|||||||
yield from update_ui_lastest_msg('已清空', chatbot, history, delay=0) # 刷新界面
|
yield from update_ui_lastest_msg('已清空', chatbot, history, delay=0) # 刷新界面
|
||||||
return
|
return
|
||||||
|
|
||||||
else:
|
|
||||||
report_exception(chatbot, history, a=f"上传文件路径错误: {txt}", b="请检查并提供正确路径。")
|
|
||||||
|
|
||||||
# 3. Normal Q&A processing
|
# 3. Normal Q&A processing
|
||||||
chatbot.append([txt, f'正在召回知识 ({current_context}) ...'])
|
chatbot.append([txt, f'正在召回知识 ({current_context}) ...'])
|
||||||
yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
|
yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
|
||||||
|
|||||||
@@ -423,9 +423,6 @@ def 编译Latex(chatbot, history, main_file_original, main_file_modified, work_f
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return True # 成功啦
|
return True # 成功啦
|
||||||
else:
|
else:
|
||||||
if n_fix>=max_try: break
|
if n_fix>=max_try: break
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户