{
"contentType": "application/json",
"properties": {
"documents": {
"items": {
"type": "string"
},
"type": "array"
},
"instruct": {
"type": "string"
},
"model": {
"type": "string"
},
"query": {
"type": "string"
},
"top_n": {
"type": "integer"
}
},
"required": [
"model",
"documents",
"query",
"top_n",
"instruct"
]
}{
"documents": [
"文本排序模型广泛用于搜索引擎 and 推荐系统中,它们根据文本相关性对候选文本进行排序",
"量子计算是计算科学的一个前沿领域",
"预训练语言模型的发展给文本排序模型带来了新的进展"
],
"instruct": "Given a web search query, retrieve relevant passages that answer the query.",
"model": "qwen3-rerank",
"query": "什么是文本排序模型",
"top_n": 2
}{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "\n\nHello there, how may I assist you today?",
"role": "assistant"
}
}
],
"created": 1677652288,
"id": "chatcmpl-123",
"object": "chat.completion",
"usage": {
"completion_tokens": 12,
"prompt_tokens": 9,
"total_tokens": 21
}
}{
"results": [
{
"document": {
"text": "文本排序模型广泛用于搜索引擎 and 推荐系统中,它们根据文本相关性对候选文本进行排序"
},
"index": 0,
"relevance_score": 0.915543128021105
},
{
"document": {
"text": "预训练语言模型的发展给文本排序模型带来了新的进展"
},
"index": 2,
"relevance_score": 0.7576691095659295
}
],
"usage": {
"completion_tokens": 0,
"completion_tokens_details": {
"audio_tokens": 0,
"reasoning_tokens": 0,
"text_tokens": 0
},
"input_tokens": 0,
"input_tokens_details": null,
"output_tokens": 0,
"prompt_tokens": 107,
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0,
"image_tokens": 0,
"text_tokens": 0
},
"total_tokens": 107
}
}