Rerank
POST /rerank. Sort documents by how well they match a query.
curl -X POST https://api.clod.io/v1/rerank \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "RERANK_MODEL",
"query": "What is the capital of France?",
"documents": [
"Paris is the capital of France.",
"Berlin is in Germany."
]
}'