启航 AI
  1. 重排序模型
启航 AI
  • 启航 AI 简介
  • 启航 AI 基本介绍
    • 快速上手
    • 联系客服
    • 接口地址
  • 聊天模型
    • 聊天请求
      POST
  • 绘图模型
    • 绘图(Image 格式)
      POST
    • 绘图(Chat 格式)
      POST
    • 改图(Chat 格式)
      POST
  • 语音生成模型
    • 文本转音频
      POST
  • 视频生成模型
    • Sora 视频生成
      POST
  • 语音克隆
    • 创建语音模型
  • 嵌入模型
    • 创建嵌入
      POST
  • 重排序模型
    • 创建重排序
      POST
  • 语音识别模型
    • 音频转文本
      POST
  • Suno 音乐生成
    • 创建音乐生成任务
      POST
    • 查询音乐生成任务
      GET
  • 聚合 API 接口
    • 接口速查表
  • 其他 API 接口
    • 获取模型列表
      GET
  1. 重排序模型

创建重排序

POST
/v1/rerank

请求参数

Header 参数

Body 参数application/json

示例
{
  "model": "bge-reranker-v2-m3",
  "query": "Organic skincare products for sensitive skin",
  "top_n": 3,
  "documents": [
    "Organic skincare for sensitive skin with aloe vera and chamomile...",
    "New makeup trends focus on bold colors and innovative techniques...",
    "Bio-Hautpflege für empfindliche Haut mit Aloe Vera und Kamille..."
  ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/rerank' \
--header 'Authorization: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "model": "bge-reranker-v2-m3",
  "query": "Organic skincare products for sensitive skin",
  "top_n": 3,
  "documents": [
    "Organic skincare for sensitive skin with aloe vera and chamomile...",
    "New makeup trends focus on bold colors and innovative techniques...",
    "Bio-Hautpflege für empfindliche Haut mit Aloe Vera und Kamille..."
  ]
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "results": [
        {
            "index": 0,
            "relevance_score": 0.985363245010376
        },
        {
            "index": 2,
            "relevance_score": 0.6773008704185486
        },
        {
            "index": 1,
            "relevance_score": 0.00001600799623702187
        }
    ],
    "usage": {
        "prompt_tokens": 77,
        "completion_tokens": 0,
        "total_tokens": 77,
        "prompt_tokens_details": {
            "cached_tokens": 0,
            "text_tokens": 0,
            "audio_tokens": 0,
            "image_tokens": 0
        },
        "completion_tokens_details": {
            "text_tokens": 0,
            "audio_tokens": 0,
            "reasoning_tokens": 0
        },
        "input_tokens": 0,
        "output_tokens": 0,
        "input_tokens_details": null
    }
}
修改于 2025-10-24 08:48:21
上一页
创建嵌入
下一页
音频转文本
Built with