LLM-backed quantity parsing (escape hatch for NORMALIZE_QUANTITY)
Per-row — runs once for each row.
NORMALIZE_QUANTITY_LLM({{ value }})NORMALIZE_QUANTITY_LLM({{ value }}, '{{ system }}')| name | type | description |
|---|---|---|
| value | VARCHAR | — |
| system(optional) | VARCHAR | — |
LLM escape hatch handles pack descriptions
SELECT
normalize_quantity_llm ('500mg x 30 tablets')Remove or mask personally identifiable information from text
Type-cast messy real-world values that trip up standard CAST
Return the canonical/official form of a value (auto-detects entity type)
Extracts 4-digit year from messy text, returns -1 if undetermined
LLM-backed year extraction (escape hatch for CLEAN_YEAR)
Pick the best non-null value from a group (quality-aware COALESCE)
LLM-backed quantity parsing (escape hatch for NORMALIZE_QUANTITY)
Per-row — runs once for each row.
NORMALIZE_QUANTITY_LLM({{ value }})NORMALIZE_QUANTITY_LLM({{ value }}, '{{ system }}')| name | type | description |
|---|---|---|
| value | VARCHAR | — |
| system(optional) | VARCHAR | — |
LLM escape hatch handles pack descriptions
SELECT
normalize_quantity_llm ('500mg x 30 tablets')Remove or mask personally identifiable information from text
Type-cast messy real-world values that trip up standard CAST
Return the canonical/official form of a value (auto-detects entity type)
Extracts 4-digit year from messy text, returns -1 if undetermined
LLM-backed year extraction (escape hatch for CLEAN_YEAR)
Pick the best non-null value from a group (quality-aware COALESCE)