Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix: strip minio path prefix
wizardchen09d038eeb7ed
diff --git a/services/docreader/src/parser/storage.py b/services/docreader/src/parser/storage.pyindex 8957a7c19..e21ed2e9c 100644--- a/services/docreader/src/parser/storage.py+++ b/services/docreader/src/parser/storage.py@@ -208,7 +208,7 @@ class MinioStorage(Storage):secret_key = os.getenv("MINIO_SECRET_ACCESS_KEY")bucket_name = os.getenv("MINIO_BUCKET_NAME")use_ssl = os.getenv("MINIO_USE_SSL", "false").lower() == "true"- path_prefix = os.getenv("MINIO_PATH_PREFIX")+ path_prefix = os.getenv("MINIO_PATH_PREFIX", "").strip().strip("/")# Attempt to override with new generic storage fieldsif self.storage_config:@@ -216,7 +216,7 @@ class MinioStorage(Storage):# Direct fieldsendpoint = storage_config.get("endpoint", endpoint)bucket_name = storage_config.get("bucket_name", bucket_name)- path_prefix = storage_config.get("path_prefix", path_prefix)+ path_prefix = storage_config.get("path_prefix", path_prefix).strip().strip("/")access_key = storage_config.get("access_key_id", access_key)secret_key = storage_config.get("secret_access_key", secret_key)