mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-13 04:13:35 +08:00
### Summary Fixes #18107. `editdistance==0.8.1` (the only recent release on PyPI) has no cp313 wheels for any platform. Since this project requires exactly Python 3.13, `uv`/`pip`/`poetry` fall back to building it from source (Cython), which fails on Windows for anyone without a working C build toolchain — that's the PEP 517 build error in the issue. Swapped `editdistance` for `rapidfuzz`, which ships full cp313 wheels (win32/win_amd64/win_arm64 included) and has no build-from-source step on any of our target platforms. The only call site was `EntityResolution.is_similarity` in `rag/graphrag/entity_resolution.py`, using `editdistance.eval(a, b)` to get the unweighted Levenshtein distance between two entity names. `rapidfuzz.distance.Levenshtein.distance(a, b)` computes the same thing (verified identical output on several string pairs) and is used as a direct replacement.