Add Claude Skill for AI Functions#220
Open
CEDipEngineering wants to merge 1 commit intodatabricks-solutions:mainfrom
Open
Add Claude Skill for AI Functions#220CEDipEngineering wants to merge 1 commit intodatabricks-solutions:mainfrom
CEDipEngineering wants to merge 1 commit intodatabricks-solutions:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
databricks-ai-functionsskill covering all Databricks built-in AI Functionswith SQL and PySpark examples, function selection guidance, and an end-to-end document
processing pipeline pattern.
Why This Is Useful
Databricks AI Functions (
ai_classify,ai_extract,ai_query,ai_forecast, etc.)are often underused because developers default to
ai_queryfor everything or reach forexternal LLM libraries when a simpler built-in function would suffice. This skill gives
Claude Code the context to:
ai_queryonly asa last resort for nested JSON / custom endpoints / multimodal input)
or endpoint names
ai_parse_document→ai_classify→ai_extract→ai_query(nested only) →ai_similarityai_forecastcorrectly (it's a table-valued function, not a scalar — a commonmistake)
failOnError => falseand sidecar error tables in batch pipelinesFiles Changed
New
databricks-skills/databricks-ai-functions/SKILL.mddatabricks-skills/databricks-ai-functions/1-task-functions.mdai_analyze_sentiment,ai_classify,ai_extract,ai_fix_grammar,ai_gen,ai_mask,ai_similarity,ai_summarize,ai_translate,ai_parse_document) with SQL + PySpark examplesdatabricks-skills/databricks-ai-functions/2-ai-query.mdai_queryreference: when to use it, all parameters with runtime requirements, Foundation Model name table, patterns (structured output, multimodal, SQL UDF, batch error handling)databricks-skills/databricks-ai-functions/3-ai-forecast.mdai_forecastreference: Pro/Serverless requirement, syntax, output columns, single/multi-group/multi-metric patterns, PySpark viaspark.sql()databricks-skills/databricks-ai-functions/4-document-processing-pipeline.mdconfig.ymlcentralization pattern, near-real-time variant with DSPy + MLflow ChatAgentModified
databricks-skills/README.mddatabricks-ai-functionsentry to the AI & Agents sectionREADME.md