Skip to content

Commit

Permalink
adjust rag
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Nov 19, 2024
1 parent 3520131 commit ef18aed
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,5 @@ temp.*
objdump*
*.min.*.js
TODO

experimental_mods
search_results
2 changes: 1 addition & 1 deletion crazy_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_crazy_functions():
"多媒体智能体": {
"Group": "智能体",
"Color": "stop",
"AsButton": True,
"AsButton": False,
"Info": "【仅测试】多媒体任务",
"Function": HotReload(多媒体任务),
},
Expand Down
3 changes: 0 additions & 3 deletions crazy_functions/Rag_Interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) # 刷新界面
return

else:
report_exception(chatbot, history, a=f"上传文件路径错误: {txt}", b="请检查并提供正确路径。")

# 3. Normal Q&A processing
chatbot.append([txt, f'正在召回知识 ({current_context}) ...'])
yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
Expand Down
3 changes: 0 additions & 3 deletions crazy_functions/latex_fns/latex_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,6 @@ def 编译Latex(chatbot, history, main_file_original, main_file_modified, work_f
except Exception as e:
logger.error(e)
pass



return True # 成功啦
else:
if n_fix>=max_try: break
Expand Down

0 comments on commit ef18aed

Please sign in to comment.