Skip to content

Commit ef18aed

Browse files
committed
adjust rag
1 parent 3520131 commit ef18aed

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,5 @@ temp.*
161161
objdump*
162162
*.min.*.js
163163
TODO
164-
165164
experimental_mods
166165
search_results

crazy_functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_crazy_functions():
5555
"多媒体智能体": {
5656
"Group": "智能体",
5757
"Color": "stop",
58-
"AsButton": True,
58+
"AsButton": False,
5959
"Info": "【仅测试】多媒体任务",
6060
"Function": HotReload(多媒体任务),
6161
},

crazy_functions/Rag_Interface.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ def Rag问答(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, u
9595
yield from update_ui_lastest_msg('已清空', chatbot, history, delay=0) # 刷新界面
9696
return
9797

98-
else:
99-
report_exception(chatbot, history, a=f"上传文件路径错误: {txt}", b="请检查并提供正确路径。")
100-
10198
# 3. Normal Q&A processing
10299
chatbot.append([txt, f'正在召回知识 ({current_context}) ...'])
103100
yield from update_ui(chatbot=chatbot, history=history) # 刷新界面

crazy_functions/latex_fns/latex_actions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,6 @@ def 编译Latex(chatbot, history, main_file_original, main_file_modified, work_f
423423
except Exception as e:
424424
logger.error(e)
425425
pass
426-
427-
428-
429426
return True # 成功啦
430427
else:
431428
if n_fix>=max_try: break

0 commit comments

Comments
 (0)