ragflow/rag
lgphone 046f0bba74
Fix: optimize setting config initialization to resolve Minio initialization error (#6282)
### What problem does this PR solve?

Optimize setting configuration initialization to resolve Minio
initialization error caused by using a specific storage.

Reproduction Scenario:
Using Aliyun OSS as the backend storage with the STORAGE_IMPL
environment variable set to OSS.
The service_conf.yaml.template configuration file contains OSS-related
configurations, while other storage configurations are commented out.
When the service starts, it still attempts to initialize the Minio
storage. Since there is no Minio configuration in
service_conf.yaml.template, it results in an error due to the missing
configuration file.

Optimization Measures:
Automatically determine the required initialization configuration based
on the environment variable.
Do not initialize configurations for unused resources.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-03-20 10:45:40 +08:00
..
app Feat: add VLM-boosted PDF parser (#6278) 2025-03-20 09:39:32 +08:00
llm Feat: add TTS support for SILICONFLOW. (#6264) 2025-03-19 12:52:12 +08:00
nlp Feat: text file support position retaining. (#6231) 2025-03-18 16:55:11 +08:00
res Format file format from Windows/dos to Unix (#1949) 2024-08-15 09:17:36 +08:00
svr Fix get_unacked_iterator (#6280) 2025-03-19 17:46:58 +08:00
utils Fix get_unacked_iterator (#6280) 2025-03-19 17:46:58 +08:00
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
benchmark.py Refactor embedding batch_size (#3825) 2024-12-03 16:22:39 +08:00
prompts.py Feat: add VLM-boosted PDF parser (#6278) 2025-03-20 09:39:32 +08:00
raptor.py Refactor graphrag to remove redis lock (#5828) 2025-03-10 15:15:06 +08:00
settings.py Fix: optimize setting config initialization to resolve Minio initialization error (#6282) 2025-03-20 10:45:40 +08:00