Checks whether two values match under a relationship
Per-row — runs once for each row.
| name | type | description |
|---|---|---|
| left | VARCHAR | — |
| right | VARCHAR | — |
| relationship(optional) | VARCHAR | — |
Name variations match
SELECT
semantic_match_pair ('John Smith', 'J. Smith')Company name variants match
SELECT
semantic_match_pair ('Acme Corp', 'ACME Corporation')Clearly distinct companies do not match
SELECT
semantic_match_pair ('Umbrella Inc', 'Initech')SEMANTIC JOIN: sugar over match_pair
WITH
l AS (
SELECT
'Acme Corp' AS name
),
r AS (
SELECT
'ACME Corporation' AS vendor
)
SELECT
*
FROM
l SEMANTIC
JOIN r ON l.name ~ r.vendorHow strongly text supports a specific message or stance (0.0-1.0)
Check if an image semantically matches a text query (cross-modal)
Cross-modal cosine similarity between an image and a text query
Fuzzy cross-match two string arrays via bge-m3 embeddings
Returns TRUE if text semantically matches the criterion (cross-encoder)
LLM-backed boolean match (escape hatch for MEANS when encoder-based matching is insufficient)
Checks whether two values match under a relationship
Per-row — runs once for each row.
| name | type | description |
|---|---|---|
| left | VARCHAR | — |
| right | VARCHAR | — |
| relationship(optional) | VARCHAR | — |
Name variations match
SELECT
semantic_match_pair ('John Smith', 'J. Smith')Company name variants match
SELECT
semantic_match_pair ('Acme Corp', 'ACME Corporation')Clearly distinct companies do not match
SELECT
semantic_match_pair ('Umbrella Inc', 'Initech')SEMANTIC JOIN: sugar over match_pair
WITH
l AS (
SELECT
'Acme Corp' AS name
),
r AS (
SELECT
'ACME Corporation' AS vendor
)
SELECT
*
FROM
l SEMANTIC
JOIN r ON l.name ~ r.vendorHow strongly text supports a specific message or stance (0.0-1.0)
Check if an image semantically matches a text query (cross-modal)
Cross-modal cosine similarity between an image and a text query
Fuzzy cross-match two string arrays via bge-m3 embeddings
Returns TRUE if text semantically matches the criterion (cross-encoder)
LLM-backed boolean match (escape hatch for MEANS when encoder-based matching is insufficient)