ragflow/api
Michael Luo 44ac87aef4
Remove Redundant None Check for vector_similarity_weight (#4037)
### 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
2024-12-16 14:35:21 +08:00
..
apps Remove Redundant None Check for vector_similarity_weight (#4037) 2024-12-16 14:35:21 +08:00
db Fix bugs in agent api and update api document (#3996) 2024-12-13 10:25:52 +08:00
utils Fixed log not displaying (#3946) 2024-12-10 09:36:59 +08:00
__init__.py Add back beartype (#3967) 2024-12-10 18:43:43 +08:00
constants.py Add more web test cases (#3702) 2024-11-28 15:46:35 +08:00
ragflow_server.py Fixed log not displaying (#3946) 2024-12-10 09:36:59 +08:00
settings.py Case insensitive when set doc engine (#3954) 2024-12-10 11:26:10 +08:00
validation.py Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00
versions.py Fix VERSION 2024-12-07 16:56:34 +08:00