CMU open-sources Quail: run AI functions like AI.IF directly in SQL
sh_reya · x · 2026-11-29
CMU's Full Stack Data Lab released Quail, a fast engine for running AI functions in SQL, teased by Hamel Husain and Shreya Shankar.
- Functions include AI.IF (yes/no), AI.SCORE (0-1), AI.CLASSIFY, AI.EXTRACT / AI.EXTRACTSPAN, AI.MAP (open-ended text), AI.PARSEDOCUMENT (PDF text), and AI.SAEFEATURES (sparse autoencoder features), one answer per row
- Example: filter reviews with WHERE AI.IF(PROMPT('Does the review discuss the ending? {0}', r.body))
- Requires Python 3.12 + CUDA GPU (uv pip install quail-engine); runs on Modal or Quail Server without local GPU
- Pitch: open models on your own GPUs or Modal, far cheaper than hosted APIs; supports multimodal data like images and PDFs
Handy for batch LLM classification/extraction over existing tables.
More from coding & agent
- Automating a closed loop between a cloud model API and a local model without copy-pasting — JayoTree · 2026-12-07
- Chris Albon's agent tip: make agents log every decision they make on your behalf — hugobowne · 2026-12-07
- I asked the top AI models to earn $1 in 24 hours — none could do it — arbitragedude · 2026-12-07
- WeightMCP: a ~250-token stateless MCP server bringing SD prompt weights to Claude — UzayzamanYolcusu_ · 2026-12-07
- Google Antigravity build reveals PixelBots: 200 animated pixel-art agent avatars — testingcatalog · 2026-12-07
- Open-source WeightMCP brings A1111 prompt-weight syntax back to Claude, GPT and Gemini — UzayzamanYolcusu_ · 2026-12-07