Files
ragflow/rag/utils
dive2tech 15a534909f fix: avoid ZeroDivisionError when fulltext column weights sum to zero (#12856)
### What problem does this PR solve?

When all fulltext_search_columns use explicit weight 0 (e.g. "col^0"),
weight_sum is 0 and dividing by it raises ZeroDivisionError. Use equal
weights 1/n when weight_sum <= 0 and n > 0; otherwise normalize as
before.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [x] New Feature (non-breaking change which adds functionality)
- [x] Documentation Update
- [x] Refactoring
2026-01-28 14:38:03 +08:00
..
2025-12-29 12:01:18 +08:00
2025-12-29 12:01:18 +08:00
2025-12-29 12:01:18 +08:00
2025-12-29 12:01:18 +08:00
2025-12-29 12:01:18 +08:00
2025-12-29 12:01:18 +08:00
2025-12-29 12:01:18 +08:00