concept
Grounding and abstention
Exact manually annotated fact support, citation validation and conservative missing/conflicting evidence abstention; not general natural-language entailment.
Formal Syntax & Structure
artificial-intelligence syntaxartificial-intelligence
answer(field, context); supported(field, value, citations, context)Working Example
Example Snippetartificial-intelligence
def answer(field, context): # Manually annotated factual triples (source ID, field, value). # No model or interpretation of free text occurs here. matches = [(key, value) for key, name, value in context if name == field] values = {value for _, value in matches} if len(values) != 1: return {"status": "insufficient_evidence", "value": None, "citations": []} return {"status": "answered", "value": next(iter(values)), "citations": sorted({key for key, _ in matches})}
facts = [("H2-r1", "receipt_required", "yes"), ("H3-r1", "shipping_days", "5")]print(answer("receipt_required", facts))print(answer("refund_deadline", facts))print(answer("shipping_days", facts + [("H4-r1", "shipping_days", "7")]))