Returns TRUE if text_a contradicts text_b (3-class NLI)
Per-row — runs once for each row.
{{ text_a }} CONTRADICTS {{ text_b }}| name | type | description |
|---|---|---|
| text_a | VARCHAR | — |
| text_b | VARCHAR | — |
| threshold(optional) | DOUBLE | — |
Function: Contradicting statements detected
SELECT
semantic_contradicts (
'The product is excellent',
'The product is terrible'
)Function: Non-contradicting statements
SELECT
semantic_contradicts ('The sky is blue', 'Water is wet')Infix CONTRADICTS: detects price contradiction
WITH
t AS (
SELECT
'We will increase prices' AS stmt
)
SELECT
stmt
FROM
t
WHERE
stmt CONTRADICTS 'Prices will remain stable'Infix CONTRADICTS: compatible statements do not contradict
WITH
t AS (
SELECT
'The meeting is at 3pm' AS stmt
)
SELECT
CASE
WHEN stmt CONTRADICTS 'The meeting is in the afternoon' THEN 'yes'
ELSE 'no'
END
FROM
tExtract hidden assumptions from an argument or claim
LLM-backed contradiction check (escape hatch for CONTRADICTS)
Returns TRUE if premise entails conclusion (zero-shot NLI)
LLM-backed logical implication (escape hatch for IMPLIES)
Score how strongly evidence supports a claim (0-1)
Returns TRUE if text_a contradicts text_b (3-class NLI)
Per-row — runs once for each row.
{{ text_a }} CONTRADICTS {{ text_b }}| name | type | description |
|---|---|---|
| text_a | VARCHAR | — |
| text_b | VARCHAR | — |
| threshold(optional) | DOUBLE | — |
Function: Contradicting statements detected
SELECT
semantic_contradicts (
'The product is excellent',
'The product is terrible'
)Function: Non-contradicting statements
SELECT
semantic_contradicts ('The sky is blue', 'Water is wet')Infix CONTRADICTS: detects price contradiction
WITH
t AS (
SELECT
'We will increase prices' AS stmt
)
SELECT
stmt
FROM
t
WHERE
stmt CONTRADICTS 'Prices will remain stable'Infix CONTRADICTS: compatible statements do not contradict
WITH
t AS (
SELECT
'The meeting is at 3pm' AS stmt
)
SELECT
CASE
WHEN stmt CONTRADICTS 'The meeting is in the afternoon' THEN 'yes'
ELSE 'no'
END
FROM
tExtract hidden assumptions from an argument or claim
LLM-backed contradiction check (escape hatch for CONTRADICTS)
Returns TRUE if premise entails conclusion (zero-shot NLI)
LLM-backed logical implication (escape hatch for IMPLIES)
Score how strongly evidence supports a claim (0-1)