chore: rename multiple files to improve importability and module structure

This commit is contained in:
Annyfee
2025-11-28 11:25:58 +08:00
parent 7d10f27951
commit 5bc33d2584
41 changed files with 4 additions and 4 deletions
@@ -13,7 +13,7 @@ model_name_str = 'BAAI/bge-small-en-v1.5'
if not os.path.exists(Persist_directory): if not os.path.exists(Persist_directory):
print(f"错误: 知识库文件 {Persist_directory} 未找到。") print(f"错误: 知识库文件 {Persist_directory} 未找到。")
print("请先运行'00_build_index.py'生成向量数据库,再运行该文件") print("请先运行'build_index.py'生成向量数据库,再运行该文件")
exit() exit()
print('---加载本地向量数据库---') print('---加载本地向量数据库---')
@@ -15,7 +15,7 @@ model_name_str = 'BAAI/bge-small-en-v1.5'
if not os.path.exists(Persist_directory): if not os.path.exists(Persist_directory):
print(f"错误: 知识库文件 {Persist_directory} 未找到。") print(f"错误: 知识库文件 {Persist_directory} 未找到。")
print("请先运行'00_build_index.py'生成向量数据库,再运行该文件") print("请先运行'build_index.py'生成向量数据库,再运行该文件")
exit() exit()
print('---加载本地向量数据库---\n') print('---加载本地向量数据库---\n')
@@ -37,6 +37,6 @@ print("最终状态:",result) # 输出{'count':4}
# 保存可视化架构图 # 保存可视化架构图
with open('01_workflow.png', 'wb') as f: with open('workflow.png', 'wb') as f:
f.write(app.get_graph().draw_mermaid_png()) f.write(app.get_graph().draw_mermaid_png())
print("图表已保存为 01_workflow.png") print("图表已保存为 workflow.png")

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB