Files
ragflow/conf/models/aliyun.json
Joseff 2ad854c586 Go: implement Rerank in Aliyun driver (#14676)
### What problem does this PR solve?

The Aliyun Go driver has a stub `Rerank` method that always returns
`"Aliyun, Rerank not implemented"`. DashScope exposes an
OpenAI-compatible rerank endpoint (`compatible-mode/v1/rerank`) and
hosts dedicated bilingual rerankers (`gte-rerank-v2`, `gte-rerank`) that
are a natural pairing with the embedding models already in
`aliyun.json`. Without this, Aliyun users cannot use reranking within
RAGFlow.

Closes #14675

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
2026-05-08 20:21:04 +08:00

52 lines
1.0 KiB
JSON

{
"name": "Aliyun",
"url": {
"default": "https://dashscope.aliyuncs.com",
"singapore": "https://dashscope-intl.aliyuncs.com",
"us": "https://dashscope-us.aliyuncs.com"
},
"url_suffix": {
"chat": "compatible-mode/v1/chat/completions",
"embedding": "compatible-mode/v1/embeddings",
"rerank": "compatible-api/v1/reranks",
"models": "api/v1/deployments/models"
},
"models": [
{
"name": "qwen-flash",
"max_tokens": 995904,
"model_types": [
"chat"
]
},
{
"name": "text-embedding-v4",
"max_tokens": 8192,
"model_types": [
"embedding"
]
},
{
"name": "text-embedding-v3",
"max_tokens": 8192,
"model_types": [
"embedding"
]
},
{
"name": "qwen3-rerank",
"max_tokens": 8192,
"model_types": [
"rerank"
]
}
],
"features": {
"thinking": {
"default_value": true,
"supported_models": [
"qwen-flash"
]
}
}
}