lakala
  1. 相似度模型
lakala
  • 相似度模型
    • bge-reranker-v2-m3
      POST
    • bge-m3
      POST
    • Embedding代理服务接口
      POST
    • GPU服务器Embedding接口
      POST
    • 文档QA全领域通用相似度模型(已弃用)
      POST
    • 旧 - 支付客服问答相似度模型 - 修
      POST
    • 通用客服问答相似度模型
      POST
    • 新 - 支付客服问答相似度模型
      POST
    • 旧 - 支付客服问答相似度模型
      POST
    • 风控客服问答相似度模型
      POST
  • 分类模型
    • 新 - 意图识别多任务模型
      POST
    • 意图识别多任务模型
      POST
    • 情感分类模型
      POST
    • 新 - 风控投诉分类模型
      POST
    • 旧 - 风控投诉分类模型
      POST
  • 打分模型
    • 新 - 培训机器人打分模型
      POST
    • 新 - 培训机器人更新问答库接口
      POST
    • 旧 - 培训机器人打分模型
      POST
    • 旧 - 培训机器人更新问答库接口
      POST
  • RAG模型
    • 问题重写接口
      POST
    • RAG总接口
      POST
    • PDF文件解析
      POST
    • Redis服务
      POST
  1. 相似度模型

bge-reranker-v2-m3

测试中
POST
/v1/rerank

bge-reranker-v2-m3重排模型#

部署环境: 测试
测试环境目录: 10.177.114.231:/home/data/tlw/bge-reranker-v2-m3
测试命令:curl -X POST \ 'http://10.177.114.231:9999/v1/rerank' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "model": "custom-bge-reranker-v2-m3", "query": "What is artificial intelligence?", "documents": [ "Artificial intelligence (AI) is the simulation of human intelligence processes by machines.", "The Great Wall of China is one of the most famous landmarks in the world.", "Machine learning is a subset of AI that focuses on building systems that learn from data.", "Deep learning uses neural networks to process complex patterns in data.", "The weather today is sunny and warm.", "Python is a popular programming language for AI development." ], "top_n": 3, "return_documents": true }'

请求参数

Body 参数application/json

示例
{
  "model": "custom-bge-reranker-v2-m3",
  "query": "检索查询文本",
  "documents": ["文档1", "文档2", "..."],
  "top_n": 3,
  "return_documents": true
}

示例代码

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 'Content-Type: application/json' \
--data-raw '{
  "model": "custom-bge-reranker-v2-m3",
  "query": "检索查询文本",
  "documents": ["文档1", "文档2", "..."],
  "top_n": 3,
  "return_documents": true
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "id": "7fde0356-5191-11f0-b551-e1b324da5911",
    "results": [
        {
            "index": 0,
            "relevance_score": 0.999882698059082,
            "document": {
                "text": "Artificial intelligence (AI) is the simulation of human intelligence processes by machines."
            }
        },
        {
            "index": 2,
            "relevance_score": 0.04417058452963829,
            "document": {
                "text": "Machine learning is a subset of AI that focuses on building systems that learn from data."
            }
        },
        {
            "index": 5,
            "relevance_score": 0.004486657213419676,
            "document": {
                "text": "Python is a popular programming language for AI development."
            }
        }
    ],
    "meta": {
        "api_version": null,
        "billed_units": null,
        "tokens": null,
        "warnings": null
    }
}
修改于 2025-06-25 07:05:17
下一页
bge-m3
Built with