ragflow/api/utils
Wang Qi a9ec78cb9c
Refactor: enahnce retry and timeout (#14983)
### What problem does this PR solve?

1. Enhance retry and timeout, and adjust the default timeout
2. NER: spacy do not batch chunks
3. extract _has_cancel_and_exit
4. enhance log messages

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
- [x] Refactoring
2026-05-22 13:16:39 +08:00
..
__init__.py Remove 'get_lan_ip' and add common misc_utils.py (#10880) 2025-10-31 16:42:01 +08:00
api_utils.py Refactor: enahnce retry and timeout (#14983) 2026-05-22 13:16:39 +08:00
base64_image.py Move base64_image related functions to common directory (#10957) 2025-11-03 15:20:46 +08:00
commands.py Feat: Alter flask to Quart for async API serving. (#11275) 2025-11-18 17:05:16 +08:00
common.py Feat: Hash doc id to avoid duplicate name. (#12573) 2026-01-15 14:02:15 +08:00
configs.py security: always use RestrictedUnpickler in deserialize_b64 (CWE-502) (#14803) 2026-05-15 10:58:27 +08:00
crypt.py fix: use context managers for file handles to prevent resource leaks (#13514) 2026-03-11 16:47:06 +08:00
email_templates.py Feat: Add box connector (#11845) 2025-12-12 10:23:40 +08:00
file_utils.py fix: use context manager for pdfplumber to prevent resource leak (#13512) 2026-05-13 21:09:51 +08:00
health_utils.py Add missing timeout to ragflow server health check (#14311) 2026-04-23 14:08:52 +08:00
image_utils.py Feat: add_chunk supports add image (#13629) 2026-03-16 20:15:36 +08:00
json_encode.py Minor tweats (#11271) 2025-11-16 19:29:20 +08:00
log_utils.py Refactor log utils (#10973) 2025-11-03 20:25:02 +08:00
memory_utils.py Feat/memory (#11812) 2025-12-10 13:34:08 +08:00
reference_metadata_utils.py Feat/configurable metadata display (#13464) 2026-04-30 23:13:27 +08:00
tenant_utils.py Fix memory resolution regression for multimodal Gemini models (#14209) 2026-04-20 16:37:36 +08:00
validation_utils.py Refactor: enahnce retry and timeout (#14983) 2026-05-22 13:16:39 +08:00
web_utils.py Fix WebDriver resource leak in HTML-to-PDF conversion (#14310) 2026-05-14 13:28:58 +08:00