Denkwerk
rerank
Scores every (query, passage) pair with a cross-encoder run locally through transformers.js/ONNX Runtime and sorts by the model logit; relevance is the logistic sigmoid of the logit. multilingual: cross-encoder/mmarco-mMiniLMv2-L12-H384-v1 (Apache-2.0, trained on mMARCO: en, ar, zh, nl, fr, de, hi, id, it, ja, pt, ru, es, vi). english: cross-encoder/ms-marco-MiniLM-L6-v2 (Apache-2.0, MS MARCO, English only). Both are the int8 ONNX exports published in the model repositories (pinned.
POST https://denk.halowerk.com/v1/rerankInputs
| Field | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | |
| passages | array | Yes | Strings or objects {id, text}. |
| model | string | No | |
| top_k | integer | No | |
| max_length | integer | No | Token limit per (query, passage) pair; lower values are faster. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"query",
"passages"
],
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"passages": {
"type": "array",
"minItems": 1,
"maxItems": 50,
"description": "Strings or objects {id, text}.",
"items": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 6000
},
{
"type": "object",
"additionalProperties": false,
"required": [
"text"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 6000
},
"score": {
"type": "number"
}
}
}
]
}
},
"model": {
"type": "string",
"enum": [
"multilingual",
"english"
],
"default": "multilingual"
},
"top_k": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"max_length": {
"type": "integer",
"minimum": 64,
"maximum": 512,
"default": 512,
"description": "Token limit per (query, passage) pair; lower values are faster."
}
}
}Published input example
{
"query": "Wie hoch ist die Mehrwertsteuer in Deutschland?",
"passages": [
"Der allgemeine Umsatzsteuersatz beträgt 19 Prozent.",
"Berlin ist die Hauptstadt."
]
}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