{"components":{"securitySchemes":{"bearerAuth":{"description":"mojojojo API key (mj_live_...)","scheme":"bearer","type":"http"}}},"info":{"description":"Cohere-style reranking with the MiniLM-L6 cross-encoder on Mojo CPU kernels, $10 per million pairs","title":"Rerank API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/v1/rerank":{"post":{"operationId":"rerank_documents","requestBody":{"content":{"application/json":{"schema":{"properties":{"documents":{"items":{"type":"string"},"maxItems":512,"type":"array"},"query":{"type":"string"},"top_n":{"minimum":1,"type":"integer"}},"required":["query","documents"],"type":"object"}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[{"bearerAuth":[]}],"summary":"Score documents against a query with a MiniLM cross-encoder and return them best first (higher logit is more relevant)."}}},"servers":[{"url":"https://rerank.mojojojo.cc"}]}
