Skip to content

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

Fix: don't modify S3 file name when not using prefix_path (#7152)

Song Fuchang8362ab405c35
diff --git a/rag/utils/s3_conn.py b/rag/utils/s3_conn.py
index 135b50a7fe..05c68880a7 100644
--- a/rag/utils/s3_conn.py
+++ b/rag/utils/s3_conn.py
@@ -54,8 +54,6 @@ class RAGFlowS3:
# used as the file prefix. This is especially useful when you're using the default bucket
if self.prefix_path:
fnm = f"{self.prefix_path}/{bucket}/{fnm}"
- else:
- fnm = f"{bucket}/{fnm}"
return method(self, bucket, fnm, *args, **kwargs)
return wrapper