fix(api): fix en/api-reference/openapi_knowledge.json (#657)

* fix(api): change reranking_mode to reranking_model in openapi_knowledge.json

* add reranking mode field

* update reranking mode description;  standardize rerank model terminology

---------

Co-authored-by: Zhiqiang Yang <58433399+yangzq50@users.noreply.github.com>
Co-authored-by: Riskey <riskey47@dify.ai>
This commit is contained in:
Jyong
2026-01-08 14:09:50 +08:00
committed by GitHub
parent 202eae8baf
commit fecc1138d5
3 changed files with 29 additions and 2 deletions

View File

@@ -1767,11 +1767,20 @@
},
"reranking_enable": {
"type": "boolean",
"description": "Whether to enable a reranking model to improve search results."
"description": "Whether to enable a rerank model to improve search results."
},
"reranking_mode": {
"type": "string",
"description": "The reranking mode.",
"default": "reranking_model",
"enum": [
"reranking_model",
"weighted_score"
]
},
"reranking_model": {
"type": "object",
"description": "Configuration for the reranking model.",
"description": "Configuration for the rerank model.",
"properties": {
"reranking_provider_name": {
"type": "string",

View File

@@ -1770,6 +1770,15 @@
"description": "検索結果を改善するためのリランキングモデルを有効にするかどうか。"
},
"reranking_mode": {
"type": "string",
"description": "リランキングモード。",
"default": "reranking_model",
"enum": [
"reranking_model",
"weighted_score"
]
},
"reranking_model": {
"type": "object",
"description": "リランキングモデルの設定。",
"properties": {

View File

@@ -1770,6 +1770,15 @@
"description": "是否启用重新排序模型以改善搜索结果。"
},
"reranking_mode": {
"type": "string",
"description": "重新排序模式。",
"default": "reranking_model",
"enum": [
"reranking_model",
"weighted_score"
]
},
"reranking_model": {
"type": "object",
"description": "重新排序模型的配置。",
"properties": {