mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-08-19 05:59:21 +00:00

### What problem does this PR solve? The removed if statement is unnecessary and adds cognitive load for readers. The original code: ``` vector_similarity_weight = req.get("vector_similarity_weight", 0.3) if vector_similarity_weight is None: vector_similarity_weight = 0.3 ``` has been simplified to: ``` vector_similarity_weight = req.get("vector_similarity_weight", 0.3) ``` ### Type of change - [x] Refactoring