cURL
curl --request POST \ --url https://api.siliconflow.cn/v1/rerank \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "BAAI/bge-reranker-v2-m3", "query": "Apple", "documents": [ "apple", "banana", "fruit", "vegetable" ] }'
{ "id": "<string>", "results": [ { "document": { "text": "<string>" }, "index": 123, "relevance_score": 123 } ], "tokens": { "input_tokens": 123, "output_tokens": 123 } }
Creates a rerank request.
Use the following format for authentication: Bearer <your api key>
200
The response is of type object.
object