Skip to main content
POST
创建重排序

功能说明

重排序(Rerank)接口可以将一组文档按照与查询(Query)的相关性进行打分和排序。这通常作为 RAG(检索增强生成)流程的最后一步,用于进一步提高检索结果的准确性。

请求参数

调用示例

返回结果

返回每个文档的原始索引和相关性得分(分数越高越相关)。

相关参考

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
query
string
required
documents
string[]
required
top_n
integer

Response

200 - application/json

成功响应

results
object[]
usage
object