Beginner · 15 min
Declarative AI Infrastructure: Define Pipelines, Not Plumbing
Replace thousands of lines of orchestration code with declarative computed columns. Pixeltable handles execution, dependencies, caching, and incremental updates automatically.
The Challenge
Traditional AI infrastructure requires imperative orchestration: loading data, managing state, scheduling jobs, handling retries, tracking dependencies. This code is brittle, hard to test, and grows faster than the actual application logic.
The Solution
Pixeltable's declarative model lets you define what to compute, not how. Computed columns express your pipeline logic. The engine handles execution order, dependency tracking, incremental updates, caching, and error recovery.
Implementation Guide
Step-by-step walkthrough with code examples
Declarative Columns
Express your entire pipeline as computed columns, no orchestrator needed.
1import pixeltable as pxt2from pixeltable.functions import openai34# Define what you want, not how to get it5images = pxt.create_table('app.images', {6 'image': pxt.Image,7 'title': pxt.String,8})910# AI inference as a computed column11images.add_computed_column(12 description=openai.chat_completions(13 model='gpt-4o-mini',14 messages=[{15 'role': 'user',16 'content': [images.image, 'Describe this image.']17 }]18 ).choices[0].message.content19)2021# Dependent columns run in correct order automatically22images.add_computed_column(23 tags=openai.chat_completions(24 model='gpt-4o-mini',25 messages=[{26 'role': 'user',27 'content': images.description.apply(28 lambda d: f"Extract 5 tags from: {d}"29 )30 }]31 ).choices[0].message.content32)
Key Benefits
Real Applications
Prerequisites
Performance
Learn More
Related Guides
- Production RAG: From Documents to Answers in One System
Modality: Document
Computed column: Chunk view plus an embedding index
Docs - Computer Vision Pipeline: Object Detection, Classification, and Search
Modality: Image
Computed column: Detection computed column on an Image or frame column
Docs - AI Agents & MCP: Give Your Agents Persistent Multimodal Memory
Modality: Agent state
Computed column: Tool results stored as computed columns on the row
Docs
Ready to get started?
Install Pixeltable and start building in minutes. One pip install, no infrastructure to manage.