Denkwerk
bm25 search
Builds an in-memory BM25 index over up to 5000 supplied documents (title and text) and ranks them for the query. Formula per Robertson & Zaragoza (2009): sum over distinct query terms of idf(t) * tf * (k1+1) / (tf + k1 * (1 - b + b * |d| / avgdl)), with idf = ln(1 + (N - n + 0.5) / (n + 0.5)) and the Lucene defaults k1 = 1.2, b = 0.75 (Apache Lucene 10.3 BM25Similarity). Terms come from Unicode word segmentation, NFKC and lower case; stemming german applies the CISTEM stemmer (Weißweiler &.
POST https://denk.halowerk.com/v1/bm25-searchInputs
| Field | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | |
| documents | array | Yes | |
| k1 | number | No | |
| b | number | No | |
| top_k | integer | No | |
| stemming | string | No |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"query",
"documents"
],
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"documents": {
"type": "array",
"minItems": 1,
"maxItems": 5000,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"text"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128
},
"title": {
"type": "string",
"maxLength": 500
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100000
}
}
}
},
"k1": {
"type": "number",
"minimum": 0,
"maximum": 5,
"default": 1.2
},
"b": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.75
},
"top_k": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"default": 10
},
"stemming": {
"type": "string",
"enum": [
"none",
"german"
],
"default": "none"
}
}
}Published input example
{
"query": "Kündigung Mietvertrag Frist",
"documents": [
{
"id": "a",
"text": "Die Kündigungsfrist für den Mietvertrag beträgt drei Monate."
},
{
"id": "b",
"text": "Der Kaufvertrag wird schriftlich geschlossen."
}
],
"stemming": "german"
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Denkwerk0.003 USDC
agent card generate
POSThttps://denk.halowerk.com/v1/agent-card-generateBuilds an Agent2Agent protocol Agent Card with protocolVersion, name, description, url, version, capabilities, default input/output modes and skills. Skills come from the supplied list or are derived from OpenAPI operations (operationId, su
- Denkwerk0.003 USDC
agent permission diff
POSThttps://denk.halowerk.com/v1/agent-permission-diffTakes the tool names (with optional descriptions) and permission scopes of an agent before and after a change and reports added and removed tools and scopes, classifies new capabilities by risk (payments, sending messages, deleting or writi
- Denkwerk0.003 USDC
annotation guide draft
POSThttps://denk.halowerk.com/v1/annotation-guide-draftTakes example texts per label and derives, without a language model, the most distinguishing terms per label (TF-IDF contrast against the other labels), representative examples, cross-label example pairs with high similarity that need a wri