Embeddings and reranking
Rerank documents for a query
Scores how well each document answers the query, from 0 to 1, and returns them best first with their place in the request. Up to 100 documents of up to 8,000 characters; each pair is read up to 512 tokens. GET takes query and repeated document parameters; POST takes JSON.
post/v1/rerank
Request
- Base URL: https://api.dharun.dev
- URL: https://api.dharun.dev/v1/rerank
- Auth: none declared
Query parameters
querystring
The question, up to 2,000 characters.
documentstring
A candidate; repeat for each (or POST them).
topinteger
Return only the best few. Default all.
Request body
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.