TQL Syntax
How to properly format TQL queries
Query syntax for the Tensor Query Language (TQL)
CONTAINS and ==
-- Exact match, which generally requires that the sample
-- has 1 value, i.e. no lists or multi-dimensional arrays
select * where tensor_name == 'text_value' # If value is text
select * where tensor_name == numeric_value # If values is numeric
select * where contains(tensor_name, 'text_value')select * where contains("tensor-name", 'text_value')
select * where "tensor_name/group_name" == numeric_valueselect * where contains(\"tensor-name\", 'text_value')SHAPE
select * where shape(tensor_name)[dimension_index] > numeric_value
select * where shape(tensor_name)[1] > numeric_value # Second array dimension > valueLIMIT
AND, OR, NOT
UNION and INTERSECT
ORDER BY
ANY, ALL, and ALL_STRICT
IN and BETWEEN
REFERENCING SAMPLES IN EXISTING TENORS
SAMPLE BY
EMBEDDING SEARCH
VIRTUAL TENSORS
GROUP BY AND UNGROUP BY
EXPAND BY
Last updated
Was this helpful?