Skip to content

Merge branch 'develop' into xq/develop_import_reranker_model

3cb2fec
Select commit
Loading
Failed to load commit list.
Merged

✨ new implement : support Rerank models in model management and agent configurations #2700

Merge branch 'develop' into xq/develop_import_reranker_model
3cb2fec
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 31, 2026 in 1m 21s

Quality Gate failed

Failed conditions
6 Security Hotspots
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 820 in test/backend/services/test_model_provider_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "mock_add_repo_to_name".

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B1Zy7ka4KSV8Da8&open=AZ1C0B1Zy7ka4KSV8Da8&pullRequest=2700

Check failure on line 41 in test/backend/services/test_model_health_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B05y7ka4KSV8Da3&open=AZ1C0B05y7ka4KSV8Da3&pullRequest=2700

Check warning on line 129 in test/backend/services/test_agent_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Delete this unreachable code or refactor the code to make it reachable.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C8Re67fGjs1Y1jZUq&open=AZ1C8Re67fGjs1Y1jZUq&pullRequest=2700

Check warning on line 817 in test/backend/services/test_model_provider_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "mock_split_repo".

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B1Zy7ka4KSV8Da7&open=AZ1C0B1Zy7ka4KSV8Da7&pullRequest=2700

Check warning on line 144 in frontend/app/[locale]/models/components/model/ModelEditDialog.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0Bx4y7ka4KSV8Dax&open=AZ1C0Bx4y7ka4KSV8Dax&pullRequest=2700

Check warning on line 54 in sdk/nexent/core/models/rerank_model.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this "timeout" parameter and use a timeout context manager instead.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B4hy7ka4KSV8DbK&open=AZ1C0B4hy7ka4KSV8DbK&pullRequest=2700

Check warning on line 508 in test/sdk/core/models/test_rerank_model.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not perform equality checks with floating point values.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B4Vy7ka4KSV8DbJ&open=AZ1C0B4Vy7ka4KSV8DbJ&pullRequest=2700

Check warning on line 4982 in test/backend/services/test_vectordatabase_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "mock_rerank_class".

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0Bzgy7ka4KSV8Da1&open=AZ1C0Bzgy7ka4KSV8Da1&pullRequest=2700

Check warning on line 828 in test/backend/services/test_model_provider_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "mock_emb_dim_check".

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B1Zy7ka4KSV8Da6&open=AZ1C0B1Zy7ka4KSV8Da6&pullRequest=2700

Check warning on line 609 in test/sdk/core/tools/test_datamate_search_tool.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "results".

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B3Uy7ka4KSV8DbB&open=AZ1C0B3Uy7ka4KSV8DbB&pullRequest=2700

Check failure on line 60 in backend/services/model_provider_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0Bryy7ka4KSV8Dav&open=AZ1C0Bryy7ka4KSV8Dav&pullRequest=2700

Check failure on line 115 in sdk/nexent/core/tools/knowledge_base_search_tool.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 33 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C8MJyBjcZnSaxMyip&open=AZ1C8MJyBjcZnSaxMyip&pullRequest=2700

Check warning on line 4961 in test/backend/services/test_vectordatabase_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "mock_rerank_class".

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0Bzgy7ka4KSV8Da0&open=AZ1C0Bzgy7ka4KSV8Da0&pullRequest=2700

Check warning on line 990 in frontend/app/[locale]/models/components/modelConfig.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0Byxy7ka4KSV8Daz&open=AZ1C0Byxy7ka4KSV8Daz&pullRequest=2700

Check warning on line 671 in test/sdk/core/tools/test_dify_search_tool.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "results".

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B3oy7ka4KSV8DbG&open=AZ1C0B3oy7ka4KSV8DbG&pullRequest=2700

Check failure on line 203 in sdk/nexent/core/tools/datamate_search_tool.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 34 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B41y7ka4KSV8DbM&open=AZ1C0B41y7ka4KSV8DbM&pullRequest=2700

Check warning on line 774 in test/backend/services/test_model_provider_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "mock_add_repo_to_name".

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B1Zy7ka4KSV8Da4&open=AZ1C0B1Zy7ka4KSV8Da4&pullRequest=2700

Check warning on line 134 in test/sdk/core/models/test_rerank_model.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not perform equality checks with floating point values.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B4Vy7ka4KSV8DbI&open=AZ1C0B4Vy7ka4KSV8DbI&pullRequest=2700

Check warning on line 484 in frontend/app/[locale]/models/components/model/ModelAddDialog.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0ByXy7ka4KSV8Day&open=AZ1C0ByXy7ka4KSV8Day&pullRequest=2700

Check warning on line 771 in test/backend/services/test_model_provider_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "mock_split_repo".

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B1Zy7ka4KSV8Da5&open=AZ1C0B1Zy7ka4KSV8Da5&pullRequest=2700

Check warning on line 870 in test/backend/services/test_model_provider_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "mock_split_repo".

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B1Zy7ka4KSV8Da_&open=AZ1C0B1Zy7ka4KSV8Da_&pullRequest=2700

Check failure on line 153 in sdk/nexent/core/tools/dify_search_tool.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 35 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B5gy7ka4KSV8DbO&open=AZ1C0B5gy7ka4KSV8DbO&pullRequest=2700

Check failure on line 40 in test/backend/app/test_knowledge_summary_app.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B24y7ka4KSV8DbA&open=AZ1C0B24y7ka4KSV8DbA&pullRequest=2700

Check warning on line 53 in frontend/app/[locale]/agents/components/agentConfig/tool/ToolConfigModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

`TOOLS_SUPPORTING_RERANK` should be a `Set`, and use `TOOLS_SUPPORTING_RERANK.has()` to check existence or non-existence.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0Bxey7ka4KSV8Daw&open=AZ1C0Bxey7ka4KSV8Daw&pullRequest=2700

Check warning on line 878 in test/backend/services/test_model_provider_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "mock_raw_url".

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ1C0B1Zy7ka4KSV8Da-&open=AZ1C0B1Zy7ka4KSV8Da-&pullRequest=2700