ragflow/rag
fansir efc4796f01
Fix ratelimit errors during document parsing (#6413)
### What problem does this PR solve?

When using the online large model API knowledge base to extract
knowledge graphs, frequent Rate Limit Errors were triggered,
causing document parsing to fail. This commit fixes the issue by
optimizing API calls in the following way:
Added exponential backoff and jitter to the API call to reduce the
frequency of Rate Limit Errors.


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
2025-03-22 23:07:03 +08:00
..
app Feat: Adds hierarchical title path tracking for tables in DOCX documents to improve context association (#6374) 2025-03-21 18:42:36 +08:00
llm Fix ratelimit errors during document parsing (#6413) 2025-03-22 23:07:03 +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: huggingface rerank model issue. (#6385) 2025-03-21 12:43:32 +08:00
utils Call register_scripts on connecting redis (#6361) 2025-03-20 23:20:37 +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