cURL
curl --request POST \ --url https://api.novita.ai/v3/openai/rerank \ --header 'Authorization: <authorization>' \ --header 'Content-Type: <content-type>' \ --data '{ "model": "<string>", "query": "<string>", "documents": [ "<string>" ], "top_n": 123 }'
{ "id": "<string>", "results": [ { "document": { "text": "<string>" }, "index": 123, "relevance_score": 123 } ], "usage": { "completion_tokens": 123, "prompt_tokens": 123, "total_tokens": 123 } }
application/json
Show properties
Was this page helpful?