ragflow/api/apps
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
..
sdk Fix bugs in agent api and update api document (#3996) 2024-12-13 10:25:52 +08:00
__init__.py Remove unused code (#3448) 2024-11-18 12:05:38 +08:00
api_app.py Added static check at PR CI (#3921) 2024-12-08 21:23:51 +08:00
canvas_app.py Add mssql support (#3985) 2024-12-12 19:26:44 +08:00
chunk_app.py Replaced md5 with xxhash64 for chunk id (#4009) 2024-12-12 17:47:39 +08:00
conversation_app.py Fix: Completion AttributeError: 'list' object has no attribute 'get' (#3999) 2024-12-12 19:00:34 +08:00
dialog_app.py Remove Redundant None Check for vector_similarity_weight (#4037) 2024-12-16 14:35:21 +08:00
document_app.py Try to reuse existing chunks (#3983) 2024-12-12 16:38:03 +08:00
file2document_app.py Added static check at PR CI (#3921) 2024-12-08 21:23:51 +08:00
file_app.py Added static check at PR CI (#3921) 2024-12-08 21:23:51 +08:00
kb_app.py Added static check at PR CI (#3921) 2024-12-08 21:23:51 +08:00
llm_app.py Fix connection error for adding visual llm. (#4028) 2024-12-13 18:54:51 +08:00
system_app.py Add support to iframe chatbot (#3929) 2024-12-09 12:38:04 +08:00
tenant_app.py Added static check at PR CI (#3921) 2024-12-08 21:23:51 +08:00
user_app.py Added static check at PR CI (#3921) 2024-12-08 21:23:51 +08:00