{"slug": "quail-a-fast-engine-for-ai-functions-in-sql", "title": "Quail: A fast engine for AI functions in SQL", "summary": "Quail released quail-engine, a SQL engine that runs AI functions such as AI.IF and PROMPT directly over table rows, returning one answer per row that SQL can use like any other value. The package requires Python 3.12 and a supported CUDA GPU, and can run on Modal or connect to Quail Server when no local GPU is available.", "body_md": "\n\n```\nSELECT r.id FROM reviews r\nWHERE AI.IF(PROMPT(\n  'Does the review discuss the ending? {0}',\n  r.body))\n```\n\n| id | body | AI.IF | \n|---|---|---|\n| r1 | The ending was perfect and the cast was great. | true | \n| r2 | Too long, and the ending made no sense. | true | \n| r3 | Great music, but I want my money back. | false | \n\n## AI functions\n\nEach AI function returns one answer per row. SQL uses the answer like any other value.\n\n## Install\n\nQuail needs Python 3.12 and a supported CUDA GPU.\n\nThe package is `quail-engine`, and you import it as `quail`. With no\nlocal GPU, run Quail on [Modal](https://fsdatalab.github.io/quail/docs/user-guide/models#no-local-gpu-use-modal)\nor connect to [Quail Server](https://fsdatalab.github.io/quail/docs/user-guide/server).", "url": "https://wpnews.pro/news/quail-a-fast-engine-for-ai-functions-in-sql", "canonical_source": "https://fsdatalab.github.io/quail/docs", "published_at": "2026-11-28 17:28:30+00:00", "updated_at": "2026-11-28 17:43:03.848800+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-infrastructure", "large-language-models"], "entities": ["Quail", "quail-engine", "Modal", "Quail Server", "Python 3.12", "CUDA"], "also_reported_by": [], "takeaway": "Quail's quail-engine lets developers call AI.IF and PROMPT inside SQL SELECT statements so each row gets an AI-generated answer usable as a normal column value, but it requires Python 3.12 and a supported CUDA GPU or Modal/Quail Server.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/quail-a-fast-engine-for-ai-functions-in-sql", "markdown": "https://wpnews.pro/news/quail-a-fast-engine-for-ai-functions-in-sql.md", "text": "https://wpnews.pro/news/quail-a-fast-engine-for-ai-functions-in-sql.txt", "jsonld": "https://wpnews.pro/news/quail-a-fast-engine-for-ai-functions-in-sql.jsonld"}}