{"slug":"agents-204-168-199-108-sslip-io-v1-util-bm25-rank-22e5c4","title":"Keyword search over documents you supply, no index needed","host":"agents.204-168-199-108.sslip.io","method":"GET","resource":"https://agents.204-168-199-108.sslip.io/v1/util/bm25-rank","category":"search","description":"Keyword search over documents you supply, no index needed: give a query and up to 2,000 documents (strings or {id,title,text}) and get them ranked by Okapi BM25 with score, relative relevance, matched terms, query coverage and a best-matching snippet. Use for RAG retrieval, reranking search results ","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checked_on":"2026-11-30","checks_7d":3,"answered_7d":3,"latency_ms_median":955,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["aws:base","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"documents":"[{\"id\":\"faq-1\",\"text\":\"Shipping takes 3-5 business days in the EU.\"},{\"id\":\"faq-2\",\"text\":\"You can ask for a refund within 30 days of delivery.\"},{\"id\":\"faq-3\",\"text\":\"Refunds are paid to the original card.\"}]","query":"refund within 30 days"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"b":{"description":"BM25 b (default 0.75)","type":"string"},"documents":{"description":"JSON array of strings or {id,title,text} objects (≤2000)","type":"string"},"k1":{"description":"BM25 k1 (default 1.5)","type":"string"},"query":{"description":"Search query","type":"string"},"top_k":{"description":"Results to return (default 10)","type":"string"}},"required":["query","documents"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-30","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":949,"error":null},{"day":"2026-11-29","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":956,"error":null},{"day":"2026-11-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":955,"error":null}],"description_full":"Keyword search over documents you supply, no index needed: give a query and up to 2,000 documents (strings or {id,title,text}) and get them ranked by Okapi BM25 with score, relative relevance, matched terms, query coverage and a best-matching snippet. Use for RAG retrieval, reranking search results or picking the right FAQ/chunk before calling an LLM. Tunable k1/b, top_k.","last_updated":"2026-11-27T22:56:47.483Z","schemes":["exact"]}