← catalog / AI Automation Software / Graphs and knowledge graphs
Read a passage about two companies, decide what relationship it asserts and how firmly, resolve duplicate records, and catch contradictions with the graph.
4 questions, declared once. Jev and Laya accept this shape directly; the Claude path renders it into a prompt and a JSON schema.
{
"relation": {
"type": "choice",
"instructions": "What relationship does the passage assert between `entity_a` and `entity_b`?",
"criteria": {
"acquired": "A bought B outright",
"invested_in": "A took a minority stake in B without acquiring it",
"partnership": "A and B work together with no ownership change",
"supplier_of": "A supplies goods or services to B",
"competitor_of": "A and B compete in the same market",
"no_relation": "The passage asserts no relationship between the two"
}
},
"same_entity": {
"type": "noul",
"instructions": "Do `record_a` and `record_b` refer to the same real-world company?",
"criteria": {
"true": "Same legal entity despite differences in naming, address format, or suffix",
"false": "Distinct companies, or too little in common to conclude they match"
}
},
"contradicts_graph": {
"type": "noul",
"instructions": "Does the passage contradict the stated existing graph fact?",
"criteria": {
"true": "The passage asserts something incompatible with the recorded fact",
"false": "The passage is consistent with, or silent on, the recorded fact"
}
},
"assertion_strength": {
"type": "score",
"instructions": "How firmly does the passage assert this relationship?",
"criteria": [
"Speculation or rumour: reportedly, sources say, may be considering",
"Reported by one party without confirmation",
"Stated as fact in the passage",
"Stated as fact with a citation, filing, or official announcement"
]
}
}Derived from the questions above, so every backend is asked the same thing.