Documentation Index
Fetch the complete documentation index at: https://docs.lemondata.cc/llms.txt
Use this file to discover all available pages before exploring further.
For coding agents, discover the current recommended rerank shortlist first with
GET /v1/models?recommended_for=rerank, then send the selected model explicitly to this endpoint.Request Body
Synchronous request timeout: This non-chat endpoint waits for the routed model to finish. Large inputs, long audio, or large batches can exceed common 30s client defaults, so set your HTTP client timeout to at least120s.
ID of the reranker model to use (e.g.,
BAAI/bge-reranker-v2-m3, qwen3-rerank).The query to rank documents against. Maximum length:
32,000 characters.List of documents (strings) to rerank. Limits: up to
1,000 documents, each document up to 100,000 characters, and at most 2,000,000 total document characters.Number of top results to return. Defaults to all documents. Must be at least
1 and no greater than documents.length. LemonData currently has no governed provider-specific lower hard cap; if a provider publishes one later, it must be added to rerank request-shape truth before being documented or enforced.Whether to include original document text in response.
Response
Ranked list of documents with scores.Each result contains:
index(integer): Original document indexrelevance_score(number): Relevance score (0-1)document(string): Original text (ifreturn_documents=true)
The model used for reranking.
Token usage statistics.