Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

databricks-ai-functions

БесплатноБез исполняемых скриптовНе проверен

Use Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate, ai_fix_grammar, ai_gen, ai_analyze_sentiment…

databricksот databricks★ 421 звезда на GitHub

Об этом скилле

Databricks AI Functions

Official Docs: https://docs.databricks.com/large-language-models/ai-functions Individual function reference: https://docs.databricks.com/sql/language-manual/sql-ref-functions-builtin

Overview

Databricks AI Functions are built-in SQL and PySpark functions that call Foundation Model APIs directly from your data pipelines — no model endpoint setup, no API keys, no boilerplate. They operate on table columns as naturally as UPPER() or LENGTH(), and are optimized for batch inference at scale.

Always prefer a task-specific function over ai_query. Reach for ai_query only when no task function fits (custom/external endpoints, multimodal, or JSON beyond ai_extract's limits). Every function below shares a baseline: DBR 15.1+ (notebooks) / 15.4 ML LTS (batch), not on SQL Warehouse Classic, and region must support AI Functions — the Prereqs column lists only what's additional.

Cost & speed — each call is an LLM inference (slow and billed per token). Run a function once per row and persist the result to a Delta table; never re-invoke it on every downstream query. In demos, avoid generating tables with millions of rows — sample the input when needed so the demo runs quickly. Materialize once, then query the cheap Delta output.

The Function column links to the in-repo deep reference (full options, schemas, examples); Docs links to the official page.

Function Task Input Output Extra prereqs Docs
ai_analyze_sentiment Sentiment scoring content STRING STRING — positive/negative/neutral/mixed, or NULL — ↗
ai_classify Fixed-label routing content STRING|VARIANT, labels (2–500), [options MAP] v2.1 VARIANT — {response:[{value:label}], error_message, metadata} — ↗
ai_decide Evaluate questions (boolean / choice / score) over text or structured data state STRING|VARIANT, questions STRING (JSON), [options MAP] VARIANT — {response:{answers}, metadata, error_message} Beta; admin-gated via Previews ↗
ai_extract Entity / field extraction content STRING|VARIANT, schema STRING (JSON), [options MAP] v2.1 VARIANT — {response:{field:{value:…}}, error_message, metadata} ≤256 fields, ≤12 nesting levels ↗
ai_fix_grammar Grammar correction content STRING STRING (corrected) — ↗
ai_gen Free-form generation prompt STRING STRING — ↗
ai_mask PII redaction content STRING, labels ARRAY<STRING> STRING (entities → [MASKED]) — ↗
ai_similarity Semantic similarity expr1 STRING, expr2 STRING FLOAT (0.0–1.0) — ↗
ai_summarize Summarization content STRING, [max_words INT] (0 = uncapped) STRING Public Preview; English-tuned ↗
ai_translate Translation content STRING, to_lang STRING STRING Langs: en, fr, de, hi, it, pt, es, th ↗
ai_parse_document Parse PDF / Office / images content BINARY, [Map('version','2.0', …)] VARIANT — pages, elements, error_status DBR 17.3+; ≤500 pages / 100 MB ↗
ai_prep_search RAG chunking from parsed docs or text parsed VARIANT|STRING, [options MAP] VARIANT — {document:{contents, pages, source_uri}, error_status} DBR 18.2+ (serverless env v3+) ↗
ai_query Hosted model service or custom serving endpoint, multimodal, complex JSON (last resort) `endpoint STRING
Полный SKILL.md на GitHub

Установить databricks-ai-functions в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlassets/databricks.pngassets/databricks.svgreferences/1-task-functions.mdreferences/2-ai-query.mdreferences/3-ai-forecast.md

FAQ

Что делает скилл databricks-ai-functions?

Use Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate, ai_fix_grammar, ai_gen, ai_analyze_sentiment, ai_similarity, ai_parse_document, ai_prep_search, ai_query, ai_forecast) to add AI capabilities directly to SQL and PySpark pipelines without managing model endpoints. Also covers document parsing and building custom RAG pipelines (parse → prep_search → index → query).

Как установить скилл databricks-ai-functions?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл databricks-ai-functions запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить databricks-ai-functions с