Write the Support Shape
Translate an AI answer risk into graph shape constraints.
A ContractTerm node can enter customer-facing AI retrieval only if it has one status, source evidence, and valid dates. SHACL shape from answer risk: required fields, cardinality, datatype, source, eligibility The common trap is writing shapes for easy fields, such as label length, while leaving answer-changing fields like status, source, and dates unvalidated. Before ContractTerm nodes were loaded if they had any text and a customer ID. The assistant could retrieve terms with duplicate statuses or missing source evidence. After Only ContractTerm nodes passing the shape were eligible for customer-facing retrieval; invalid terms created data-quality tasks. Name the risky node…
Sign up free — one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in