Assigns values to K semantic clusters via GPU embeddings + k-means/HDBSCAN
Per-group — reads the whole group in one call.
MEANING({{ values }})MEANING({{ values }}, {{ num_clusters }})MEANING({{ values }}, {{ num_clusters }}, {{ criterion }})| name | type | description |
|---|---|---|
| values | JSON | — |
| num_clusters | INTEGER | — |
| criterion(optional) | VARCHAR | — |
Clusters cities by geographic region
WITH
test_data AS (
SELECT
*
FROM
(
VALUES
('New York'),
('Los Angeles'),
('Chicago'),
('Paris'),
('London'),
('Berlin'),
('Tokyo'),
('Beijing'),
('Seoul')
) AS t (city)
)
SELECT
MEANING (city, 3, 'geographic region')
FROM
test_dataAssigns values to K semantic clusters via GPU embeddings + k-means/HDBSCAN
Per-group — reads the whole group in one call.
MEANING({{ values }})MEANING({{ values }}, {{ num_clusters }})MEANING({{ values }}, {{ num_clusters }}, {{ criterion }})| name | type | description |
|---|---|---|
| values | JSON | — |
| num_clusters | INTEGER | — |
| criterion(optional) | VARCHAR | — |
Clusters cities by geographic region
WITH
test_data AS (
SELECT
*
FROM
(
VALUES
('New York'),
('Los Angeles'),
('Chicago'),
('Paris'),
('London'),
('Berlin'),
('Tokyo'),
('Beijing'),
('Seoul')
) AS t (city)
)
SELECT
MEANING (city, 3, 'geographic region')
FROM
test_data