Queries and Expressions
Expressions are the basic building blocks of Pixeltable.
This guide introduces one of Pixeltable's most essential and powerful concepts: computed columns.
Tutorials · Notebook · Updated
Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.
pip install pixeltable torch transformers timm
huggingface.detr_for_object_detection()vision.bboxes_draw()pxt.create_table()add_computed_column()insert()pop_t.add_computed_column(yoy_percent_change=(100 * pop_t.yoy_change / pop_t.pop_2022))
One cell of the notebook, copied as it is. Open it in Colab for the rest.
Expressions are the basic building blocks of Pixeltable.
Pixeltable comes with a library of built-in functions and integrations, but sooner or later, you'll want to introduce some customized logic into your workflow.
Create an embedding index, query it with similarity search and keep it current as data changes. Covers several indexes on one column, custom embedding UDFs and precomputed embeddings.
In Pixeltable, all media data (videos, images, audio) resides in external files, and Pixeltable stores references to those.