2025.11.7

This commit is contained in:
2287551746@qq.com committed 2025-11-07 11:02:15 +08:00
1 parent b1ea644e70
commit 0513f4ffeb
2 files changed
+19 -18

No files matched your search

+1
View File
@@ -32,6 +32,7 @@ def build_rag_chain(llm_instance):
if not os.path.exists(Persist_directory):
raise FileNotFoundError(f'索引目录{Persist_directory}未找到,请先运行 build_index.py')
# 链接向量数据库
embedding_model = HuggingFaceEmbeddings(model_name=Embedding_model)
db = Chroma(
persist_directory=Persist_directory,