{"uid":"cap_25ajI3ZaW2IrjwMTrxY1a","slug":"nojunk-moderate-rerank-4dc409cd","name":"NoJunk Moderate Rerank","description":"Text Moderation rerank: Semantic reranking: score up to 100 documents against a query and return them best-first (RAG, search, dedupe).","url":"https://nojunk-moderate.mick8511.workers.dev/rerank?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string","maxLength":2000,"minLength":1,"description":"The search query"},"top_k":{"type":"integer","maximum":100,"minimum":1,"description":"Return only the best top_k documents (default all)"},"documents":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","required":["text"],"properties":{"id":{"type":["string","number"]},"text":{"type":"string"}}}]},"maxItems":100,"minItems":1,"description":"1 to 100 documents as strings or {id, text} objects"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_itgmjjjdcIN-R5Oxch_9S","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Semantically reranks up to 100 documents against a query, returning them ordered best-first for RAG pipelines, search, and deduplication.","exampleAgentPrompt":"Rerank these 20 retrieved passages against my query 'how does photosynthesis work?' and return only the top 5 most relevant ones.","exampleUseCases":[{"title":"RAG pipeline context selection","prompt":"I have 50 retrieved document chunks from my knowledge base and the user asked 'what are the side effects of ibuprofen?' — rerank all 50 chunks against that question and give me the top 10 most relevant ones to put into the LLM context window."},{"title":"Enterprise search result reordering","prompt":"My search engine returned 30 product docs matching 'cloud storage pricing', but the ranking is poor — can you rerank all 30 by semantic relevance to that query and return the best-first order?"},{"title":"Deduplication and relevance filtering","prompt":"I have 80 candidate news snippets about 'Federal Reserve interest rate decision' and I need to surface the most on-topic ones — rerank them all and give me the top 15."}],"resultDescription":"Returns the input documents reordered from most to least semantically relevant to the query, each with a relevance score. If top_k is specified, only the top-k documents are returned. Documents can include their original id field for downstream reference.","failureModes":["More than 100 documents submitted — returns validation error","Empty documents array — returns 400 bad request","Query string exceeds 2000 characters — rejected","Individual document text missing 'text' field when using object format — schema validation error","Service unavailable or payment failure — 402 or 5xx response"],"whenToPreferThis":"Use this endpoint when you need fast, pay-per-call semantic reranking of up to 100 documents without managing your own reranking model infrastructure. It is ideal for RAG pipelines, hybrid search post-processing, and relevance filtering where you want best-first ordering before feeding context to an LLM. Prefer it over embedding-based similarity when you want a dedicated reranking model optimized for query-document relevance rather than general similarity.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T12:35:34.869Z","isFirstParty":false,"canonicalSlug":"nojunk-moderate-rerank-4dc409cd"}