Files
ragflow/conf/models/novita.json
Renzo fec0b968e7 Go: implement Rerank in Novita driver (#15014)
### What problem does this PR solve?

Fixes #15012

The Novita Go driver landed in #14850 and shipped a stub `Rerank` method
that returned `"novita, no such method"`, so Novita could not be used as
a rerank provider in RAGFlow. This PR fills that gap, in the same way
#14895 filled the Embed gap on the same driver.

Novita exposes a public rerank endpoint at `POST
https://api.novita.ai/openai/v1/rerank` that accepts the
Cohere-compatible request shape (`{model, query, documents, top_n}`)
with `Authorization: Bearer <api_key>`. `baai/bge-reranker-v2-m3` is
documented in Novita's model library with a 1024-token limit.
2026-05-21 10:19:17 +08:00

79 lines
1.4 KiB
JSON

{
"name": "Novita",
"url": {
"default": "https://api.novita.ai"
},
"url_suffix": {
"chat": "openai/v1/chat/completions",
"models": "openai/v1/models",
"embedding": "openai/v1/embeddings",
"rerank": "openai/v1/rerank"
},
"class": "novita",
"models": [
{
"name": "deepseek/deepseek-v4-pro",
"max_tokens": 65536,
"model_types": [
"chat"
]
},
{
"name": "meta-llama/llama-3.3-70b-instruct",
"max_tokens": 131072,
"model_types": [
"chat"
]
},
{
"name": "qwen/qwen3-30b-a3b-fp8",
"max_tokens": 32768,
"model_types": [
"chat"
]
},
{
"name": "qwen/qwen3-235b-a22b-fp8",
"max_tokens": 32768,
"model_types": [
"chat"
]
},
{
"name": "moonshotai/kimi-k2-instruct",
"max_tokens": 131072,
"model_types": [
"chat"
]
},
{
"name": "google/gemma-3-27b-it",
"max_tokens": 131072,
"model_types": [
"chat"
]
},
{
"name": "mistralai/mistral-nemo",
"max_tokens": 131072,
"model_types": [
"chat"
]
},
{
"name": "baai/bge-m3",
"max_tokens": 8192,
"model_types": [
"embedding"
]
},
{
"name": "baai/bge-reranker-v2-m3",
"max_tokens": 1024,
"model_types": [
"rerank"
]
}
]
}