{
"model": "string",
"query": "string",
"top_n": 0,
"documents": [
"string"
]
}
curl --location -g --request POST '{{BASE_URL}}/v1/rerank' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"query": "string",
"top_n": 0,
"documents": [
"string"
]
}'
{
"results": [
{
"document": {
"text": "Organic skincare for sensitive skin with aloe vera and chamomile: Imagine the soothing embrace of nature with our organic skincare range, crafted specifically for sensitive skin. Infused with the calming properties of aloe vera and chamomile, each product provides gentle nourishment and protection. Say goodbye to irritation and hello to a glowing, healthy complexion."
},
"index": 0,
"relevance_score": 0.8783142566680908
},
{
"document": {
"text": "针对敏感肌专门设计的天然有机护肤产品:体验由芦荟和洋甘菊提取物带来的自然呵护。我们的护肤产品特别为敏感肌设计,温和滋润,保护您的肌肤不受刺激。让您的肌肤告别不适,迎来健康光彩。"
},
"index": 6,
"relevance_score": 0.8783142566680908
},
{
"document": {
"text": "Cuidado de la piel orgánico para piel sensible con aloe vera y manzanilla: Descubre el poder de la naturaleza con nuestra línea de cuidado de la piel orgánico, diseñada especialmente para pieles sensibles. Enriquecidos con aloe vera y manzanilla, estos productos ofrecen una hidratación y protección suave. Despídete de las irritaciones y saluda a una piel radiante y saludable."
},
"index": 4,
"relevance_score": 0.8624675869941711
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 815,
"prompt_tokens_details": {
"cached_tokens": 0,
"audio_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0,
"audio_tokens": 0,
"accepted_prediction_tokens": 0,
"rejected_prediction_tokens": 0
}
}
}