Zum Inhalt
HALOWERK

Researchwerk

grounding score

Splits the answer into sentences and measures, for each one, how much of it is covered by the supplied sources. Coverage is asymmetric on purpose: the question is what share of the statement appears in the source, so a long source can fully cover a short claim, and it combines single-word overlap with word-pair overlap because the same words in a different order can mean something else. Two checks override coverage and this is the point of the endpoint. Negation is compared separately, so a.

POST https://research.halowerk.com/v1/grounding-score

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
answerstringJaThe answer or text to be checked against the sources.
sourcesarrayJaThe sources the answer is supposed to rest on.
min_coveragenumberNeinCoverage from which a sentence counts as supported. Default 0.6.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "answer",
    "sources"
  ],
  "additionalProperties": false,
  "properties": {
    "answer": {
      "type": "string",
      "minLength": 10,
      "maxLength": 40000,
      "description": "The answer or text to be checked against the sources."
    },
    "sources": {
      "type": "array",
      "minItems": 1,
      "maxItems": 50,
      "description": "The sources the answer is supposed to rest on.",
      "items": {
        "type": "object",
        "required": [
          "text"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 100,
            "description": "Optional identifier, echoed back on every match."
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200000,
            "description": "Full text of the source."
          },
          "url": {
            "type": "string",
            "maxLength": 2000,
            "description": "Optional origin, passed through unchanged."
          }
        }
      }
    },
    "min_coverage": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 1,
      "default": 0.6,
      "description": "Coverage from which a sentence counts as supported. Default 0.6."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "answer": "Das Unternehmen wurde 1994 gegruendet. Der Umsatz lag zuletzt bei 12 Millionen Euro.",
  "sources": [
    {
      "id": "q1",
      "text": "Die Firma wurde im Jahr 1994 in Muenster gegruendet und beschaeftigt heute 80 Personen."
    }
  ]
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →