chore: rename multiple files to improve importability and module structure
This commit is contained in:
1 parent
7d10f27951
commit
5bc33d2584
41 files changed
+4
-4
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -13,7 +13,7 @@ model_name_str = 'BAAI/bge-small-en-v1.5'
|
||||
|
||||
if not os.path.exists(Persist_directory):
|
||||
print(f"错误: 知识库文件 {Persist_directory} 未找到。")
|
||||
print("请先运行'00_build_index.py'生成向量数据库,再运行该文件")
|
||||
print("请先运行'build_index.py'生成向量数据库,再运行该文件")
|
||||
exit()
|
||||
|
||||
print('---加载本地向量数据库---')
|
||||
File renamed without changes.
File renamed without changes.
@@ -15,7 +15,7 @@ model_name_str = 'BAAI/bge-small-en-v1.5'
|
||||
|
||||
if not os.path.exists(Persist_directory):
|
||||
print(f"错误: 知识库文件 {Persist_directory} 未找到。")
|
||||
print("请先运行'00_build_index.py'生成向量数据库,再运行该文件")
|
||||
print("请先运行'build_index.py'生成向量数据库,再运行该文件")
|
||||
exit()
|
||||
|
||||
print('---加载本地向量数据库---\n')
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -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())
|
||||
print("图表已保存为 01_workflow.png")
|
||||
print("图表已保存为 workflow.png")
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user