Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: Solve the problem of model files in the image being soft links pointing to a non-existent address. #3584 (#3586)

YANGBoSunninga10c2f2effac
diff --git a/download_deps.py b/download_deps.py
index 6c0c6d5bcf..36d83e60bb 100644
--- a/download_deps.py
+++ b/download_deps.py
@@ -27,7 +27,7 @@ repos = [
def download_model(repo_id):
local_dir = os.path.abspath(os.path.join("huggingface.co", repo_id))
os.makedirs(local_dir, exist_ok=True)
- snapshot_download(repo_id=repo_id, local_dir=local_dir)
+ snapshot_download(repo_id=repo_id, local_dir=local_dir, local_dir_use_symlinks=False)
if __name__ == "__main__":