{"slug":"agents-crowdspark-me-v1-text-rerank-e62e2d","title":"Rerank search results or RAG chunks by relevance to a query","host":"agents.crowdspark.me","method":"POST","resource":"https://agents.crowdspark.me/v1/text/rerank","category":"search","description":"Rerank search results or RAG chunks by relevance to a query: JSON body {query, documents, top_k}. Up to 50 documents (strings or {id, text}), each up to 2,000 chars. Returns the documents sorted by a 0-1 relevance score from the bge-reranker-base cross-encoder. Texts are not stored.","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":17,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"documents":["Photosynthesis turns light, water and carbon dioxide into sugar.","The stock market closed higher on Friday.","Chlorophyll absorbs sunlight in leaves."],"query":"how do plants make food","top_k":2},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"documents":{"description":"1 to 50 strings or {id, text} objects, each max 2,000 characters","items":{"anyOf":[{"type":"string"},{"properties":{"id":{"type":"string"},"text":{"type":"string"}},"required":["text"],"type":"object"}]},"maxItems":50,"type":"array"},"query":{"description":"Search query, max 1,000 characters","type":"string"},"return_documents":{"description":"Optional, default true","type":"boolean"},"top_k":{"description":"Optional number of results, default all","maximum":50,"minimum":1,"type":"integer"}},"required":["query","documents"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-31","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":17,"error":null}],"description_full":"Rerank search results or RAG chunks by relevance to a query: JSON body {query, documents, top_k}. Up to 50 documents (strings or {id, text}), each up to 2,000 chars. Returns the documents sorted by a 0-1 relevance score from the bge-reranker-base cross-encoder. Texts are not stored.","last_updated":"2026-10-30T15:42:04.343Z","schemes":["exact"]}