mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-12 11:43:39 +08:00
## Summary Add a `batch_size` field to every embedding model entry in `conf/models/*.json`. The field represents the maximum number of text inputs that can be submitted to the embedding API in a single request. **75 embedding models across 30 config files** now carry a `batch_size`. Values were verified against each provider's official documentation (see the verification table at `Desktop/embedding_models_verified.md`). ## Distribution | batch_size | # models | Provider / Model | |---|---|---| | 1 | 2 | AWS Bedrock `amazon.titan-embed-text-v1/v2:0` — Bedrock `invoke` accepts a single input per call | | 10 | 3 | Aliyun `text-embedding-v3/v4`, Volcengine `doubao-embedding-vision-251215` | | 16 | 5 | BaiChuan `Baichuan-Text-Embedding`, Baidu Qianfan `embedding-v1`, Mistral `mistral-embed`, Replicate (x2) | | 32 | 10 | NVIDIA NIM (x3), SILICONFLOW (x2), PPIO (x3), GiteeAI `bge-m3`, HuaweiCloud `bge-m3` | | 50 | 4 | Tencent Hunyuan `kinfra` embeddings (x4) — `InputList.N` max 50 | | 96 | 8 | Cohere embed-v3/v4 (x5), Bedrock Cohere (x3) | | 100 | 3 | Google Gemini `text-embedding-004`, Upstage (x2) | | 512 | 5 | Zhipu GLM `embedding-2/3` (x2), Perplexity `pplx-embed` (x2), Astraflow `text-embedding-3-large` | | 1000 | 9 | Voyage AI (x9) — API reference max | | 1024 | 1 | DeepInfra `Qwen/Qwen3-Embedding-4B` | | 2048 | 15 | OpenAI (x3) + OpenAI-API-compatible proxies (CometAPI, n1n, Jiekou.AI, GreenPT, TogetherAI, NovitaAI) — OpenAI contract limit | | 16384 | 10 | Jina (x8), 302.AI, GiteeAI `jina-clip-v2` — no documented Jina batch limit, safe high cap | --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
276 lines
5.3 KiB
JSON
Executable File
276 lines
5.3 KiB
JSON
Executable File
{
|
|
"name": "HuaweiCloud",
|
|
"url": {
|
|
"default": "https://api.modelarts-maas.com",
|
|
"cn-southwest-2": "https://api.modelarts-maas.com",
|
|
"ap-southeast-1": "https://api-ap-southeast-1.modelarts-maas.com"
|
|
},
|
|
"url_suffix": {
|
|
"chat": "v2/chat/completions",
|
|
"async_chat": "v1/chat/completions",
|
|
"models": "v2/models",
|
|
"embedding": "v1/embeddings",
|
|
"rerank": "v1/rerank"
|
|
},
|
|
"class": "huaweicloud",
|
|
"models": [
|
|
{
|
|
"name": "deepseek-v4-pro",
|
|
"content_length": 1048576,
|
|
"max_output": 393216,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
},
|
|
"thinking": {
|
|
"default_value": true,
|
|
"clear_thinking": true
|
|
}
|
|
},
|
|
{
|
|
"name": "deepseek-v4-flash",
|
|
"content_length": 1048576,
|
|
"max_output": 393216,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
},
|
|
"thinking": {
|
|
"default_value": true,
|
|
"clear_thinking": true
|
|
}
|
|
},
|
|
{
|
|
"name": "deepseek-v3.2",
|
|
"content_length": 131072,
|
|
"max_output": 8192,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
},
|
|
"thinking": {
|
|
"default_value": false,
|
|
"clear_thinking": true
|
|
}
|
|
},
|
|
{
|
|
"name": "deepseek-v3.1-terminus",
|
|
"content_length": 131072,
|
|
"max_output": 8192,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
},
|
|
"thinking": {
|
|
"default_value": false,
|
|
"clear_thinking": true
|
|
}
|
|
},
|
|
{
|
|
"name": "DeepSeek-V3",
|
|
"content_length": 131072,
|
|
"max_output": 8192,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
}
|
|
},
|
|
{
|
|
"name": "deepseek-r1-250528",
|
|
"content_length": 131072,
|
|
"max_output": 65536,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
},
|
|
"thinking": {
|
|
"default_value": true,
|
|
"clear_thinking": true
|
|
}
|
|
},
|
|
{
|
|
"name": "qwen3-235b-a22b",
|
|
"content_length": 131072,
|
|
"max_output": 32768,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
},
|
|
"thinking": {
|
|
"default_value": true,
|
|
"clear_thinking": true
|
|
}
|
|
},
|
|
{
|
|
"name": "qwen3-32b",
|
|
"content_length": 131072,
|
|
"max_output": 32768,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
},
|
|
"thinking": {
|
|
"default_value": true,
|
|
"clear_thinking": true
|
|
}
|
|
},
|
|
{
|
|
"name": "qwen3-30b-a3b",
|
|
"content_length": 131072,
|
|
"max_output": 32768,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
},
|
|
"thinking": {
|
|
"default_value": true,
|
|
"clear_thinking": true
|
|
}
|
|
},
|
|
{
|
|
"name": "kimi-k2.6",
|
|
"content_length": 262144,
|
|
"max_output": 131072,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
},
|
|
"thinking": {
|
|
"default_value": true,
|
|
"clear_thinking": true
|
|
}
|
|
},
|
|
{
|
|
"name": "longcat-flash-chat",
|
|
"content_length": 131072,
|
|
"max_output": 8192,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
}
|
|
},
|
|
{
|
|
"name": "glm-5",
|
|
"content_length": 200000,
|
|
"max_output": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
},
|
|
"thinking": {
|
|
"default_value": true,
|
|
"clear_thinking": true
|
|
}
|
|
},
|
|
{
|
|
"name": "glm-5.1",
|
|
"content_length": 200000,
|
|
"max_output": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
},
|
|
"thinking": {
|
|
"default_value": true,
|
|
"clear_thinking": true
|
|
}
|
|
},
|
|
{
|
|
"name": "qwen2.5-vl-72b",
|
|
"content_length": 32768,
|
|
"max_output": 4096,
|
|
"model_types": [
|
|
"chat",
|
|
"vision"
|
|
],
|
|
"tools": {
|
|
"support": true
|
|
}
|
|
},
|
|
{
|
|
"name": "bge-m3",
|
|
"max_tokens": 8000,
|
|
"model_types": [
|
|
"embedding"
|
|
],
|
|
"batch_size": 32
|
|
},
|
|
{
|
|
"name": "bge-reranker-v2-m3",
|
|
"max_tokens": 8000,
|
|
"model_types": [
|
|
"rerank"
|
|
]
|
|
}
|
|
],
|
|
"features": {
|
|
"thinking": {
|
|
"default_value": true,
|
|
"supported_models": [
|
|
"deepseek-v4-pro",
|
|
"deepseek-v4-flash",
|
|
"deepseek-v3.2",
|
|
"deepseek-v3.1-terminus",
|
|
"deepseek-r1-250528",
|
|
"qwen3-235b-a22b",
|
|
"qwen3-32b",
|
|
"qwen3-30b-a3b",
|
|
"kimi-k2.6",
|
|
"glm-5",
|
|
"glm-5.1"
|
|
]
|
|
},
|
|
"clear_thinking": {
|
|
"default_value": true,
|
|
"supported_models": [
|
|
"deepseek-v4-pro",
|
|
"deepseek-v4-flash",
|
|
"deepseek-v3.2",
|
|
"deepseek-v3.1-terminus",
|
|
"deepseek-r1-250528",
|
|
"qwen3-235b-a22b",
|
|
"qwen3-32b",
|
|
"qwen3-30b-a3b",
|
|
"kimi-k2.6",
|
|
"glm-5",
|
|
"glm-5.1"
|
|
]
|
|
},
|
|
"reasoning": {
|
|
"type": "effort",
|
|
"enabled": true,
|
|
"default": "high",
|
|
"options": [
|
|
"high",
|
|
"max"
|
|
]
|
|
}
|
|
}
|
|
}
|