← Back to directory

Keyword search over supplied documents with Okapi BM25 (k1 and b adjustable), op...

https://denk.halowerk.com/v1/bm25-search

Overview

Keyword search over supplied documents with Okapi BM25 (k1 and b adjustable), optional German CISTEM stemming, matched terms, IDF table and snippets. Builds an in-memory BM25 index over up to 5000 supplied documents (title and text) and ranks them for the query.

Protocol x402 (POST)
Price $0.0020
Payment Asset USD Coin
Payment Network eip155:8453
Category tools/search
Provider denk
Source bazaar
Indexed 2026-11-20 16:11:04

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "documents": [ { "id": "a", "text": "Die Kündigungsfrist für den Mietvertrag beträgt drei Monate." }, { "id": "b", "text": "Der Kaufvertrag wird schriftlich geschlossen." } ], "query": "Kündigung Mietvertrag Frist", "stemming": "german" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "limitations": [ "No synonyms or semantic matching; combine with hybrid-search or query-expand-de." ], "result": { "method": "Okapi BM25 per Robertson & Zaragoza (2009), score = sum idf(t) * tf*(k1+1) / (tf + k1*(1-b+b*|d|/avgdl)), distinct query terms; idf = ln(1 + (N-n+0.5)/(n+0.5)) and defaults k1=1.2, b=0.75 as in Apache Lucene BM25Similarity (lucene.apache.org/core/10_3_0)", "params": { "avgdl": 6.5, "b": 0.75, "documents": 2, "k1": 1.2, "stemming": "german" }, "query_terms": [ { "df": 0, "idf": 1.7918, "term": "kundigung" }, { "df": 1, "idf": 0.6931, "term": "mietvertrag" }, { "df": 0, "idf": 1.7918, "term": "frist" } ], "results": [ { "id": "a", "matched_terms": [ "mietvertrag" ], "rank": 1, "score": 0.6334, "snippet": "Die Kündigungsfrist für den Mietvertrag beträgt drei Monate." } ], "total_matches": 1 }, "service": "bm25-search", "status": "success" }, "type": "json" }