Skip to content

[Feature] support bert rerank model and openai "score" api #5577

@woodx9

Description

@woodx9

Checklist

Motivation

  1. also need to support Bert rerank model with BertForSequenceClassification architectures in this feature.

  2. score api design:

  • input paramter
"text_1": "What is the capital of France?"
"text_2": [
"The capital of Brazil is Brasilia.",
"The capital of France is Paris."
]
  • api result
"data": [
    {
      "index": 0,
      "score": xxxxxxxx
    },
    {
      "index": 1,
      "score": xxxxxxxx
    }
  ]

Related resources

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions