Filter query results using LLM-based semantic matching
Table-in, table-out — composes downstream of SELECTs.
THEN FILTER {{ prompt }}THEN FILTER({{ prompt }})| name | type | description |
|---|---|---|
| prompt | VARCHAR | — |
| _table | TABLE | — |
Keeps only rows that clearly match the semantic filter
SELECT
*
FROM
(
VALUES
('Reusable bamboo cup'),
('Single-use plastic straw'),
('Recyclable paper bag')
) AS t (description) THEN FILTER (
'keep rows that explicitly describe eco-friendly, reusable, or recyclable items'
) THEN PYTHON ('result = pd.DataFrame({"row_count":[len(df)]})')Apply theme styling to a chart specification
Analyze query results with LLM based on a prompt
Remove duplicate rows
Add LLM-computed columns to query results
Group by column and aggregate another
Investigative analysis - explores related data to answer questions
Filter query results using LLM-based semantic matching
Table-in, table-out — composes downstream of SELECTs.
THEN FILTER {{ prompt }}THEN FILTER({{ prompt }})| name | type | description |
|---|---|---|
| prompt | VARCHAR | — |
| _table | TABLE | — |
Keeps only rows that clearly match the semantic filter
SELECT
*
FROM
(
VALUES
('Reusable bamboo cup'),
('Single-use plastic straw'),
('Recyclable paper bag')
) AS t (description) THEN FILTER (
'keep rows that explicitly describe eco-friendly, reusable, or recyclable items'
) THEN PYTHON ('result = pd.DataFrame({"row_count":[len(df)]})')Apply theme styling to a chart specification
Analyze query results with LLM based on a prompt
Remove duplicate rows
Add LLM-computed columns to query results
Group by column and aggregate another
Investigative analysis - explores related data to answer questions