{
"documents": [
"文本排序模型广泛用于搜索引擎 and 推荐系统中,它们根据文本相关性对候选文本进行排序",
"量子计算是计算科学的一个前沿领域",
"预训练语言模型的发展给文本排序模型带来了新的进展"
],
"instruct": "Given a web search query, retrieve relevant passages that answer the query.",
"model": "qwen3-rerank",
"query": "什么是文本排序模型",
"top_n": 2
}curl --location 'http://prod-cn.your-api-server.com/v1/rerank' \
--header 'Content-Type: application/json' \
--data '{
"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
}
}