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 numeric
select * where tensor_name == numeric_value # If values is text
select * where contains(tensor_name, 'text_value')select * where contains("tensor-name", 'text_value')
select * where "tensor_name/group_name" == numeric_valueSHAPE
select * where shape(tensor_name)[dimension_index] > numeric_value
select * where shape(tensor_name)[1] > numeric_value # Second array dimension > valueLIMIT
select * where contains(tensor_name, 'text_value') limit num_samplesAND, OR, NOT
UNION and INTERSECT
ORDER BY
ANY, ALL, and ALL_STRICT
SAMPLE BY
EMBEDDING SEARCH
VIRTUAL TENSORS
GROUP BY AND UNGROUP BY
EXPAND BY
Last updated
Was this helpful?