Check if value looks like a type (fuzzy)
Per-row — runs once for each row.
LOOKS_LIKE({{ value }}, '{{ expected_type }}'){{ value }} LOOKS_LIKE '{{ expected_type }}'| name | type | description |
|---|---|---|
| value | VARCHAR | — |
| expected_type | VARCHAR | Type to check: email, phone, address, name, date, url, ssn, etc. |
Malformed but recognizable email
SELECT
looks_like ('john@gmail', 'email')Address looks like address
SELECT
looks_like ('542 Oak Avenue, Boston MA', 'address')Phone number recognized
SELECT
looks_like ('(555) 123-4567', 'phone')URL recognized
SELECT
looks_like ('https://example.com', 'url')Gibberish is not an email
SELECT
looks_like ('asdfghjkl', 'email')ISO date recognized
SELECT
looks_like ('2024-03-15', 'date')Identify target audience via zero-shot NLI
LLM-backed audience identification (escape hatch for AUDIENCE)
Assess authenticity of content via zero-shot NLI
LLM-backed authenticity assessment (escape hatch for AUTHENTICITY)
Classify text into user-specified buckets via zero-shot NLI
LLM-backed bucketing (escape hatch for BUCKET)
Check if value looks like a type (fuzzy)
Per-row — runs once for each row.
LOOKS_LIKE({{ value }}, '{{ expected_type }}'){{ value }} LOOKS_LIKE '{{ expected_type }}'| name | type | description |
|---|---|---|
| value | VARCHAR | — |
| expected_type | VARCHAR | Type to check: email, phone, address, name, date, url, ssn, etc. |
Malformed but recognizable email
SELECT
looks_like ('john@gmail', 'email')Address looks like address
SELECT
looks_like ('542 Oak Avenue, Boston MA', 'address')Phone number recognized
SELECT
looks_like ('(555) 123-4567', 'phone')URL recognized
SELECT
looks_like ('https://example.com', 'url')Gibberish is not an email
SELECT
looks_like ('asdfghjkl', 'email')ISO date recognized
SELECT
looks_like ('2024-03-15', 'date')Identify target audience via zero-shot NLI
LLM-backed audience identification (escape hatch for AUDIENCE)
Assess authenticity of content via zero-shot NLI
LLM-backed authenticity assessment (escape hatch for AUTHENTICITY)
Classify text into user-specified buckets via zero-shot NLI
LLM-backed bucketing (escape hatch for BUCKET)