Update databricks-ai-functions skill for AI Functions v2 API#441
Open
qian-yu-db wants to merge 1 commit intomainfrom
Open
Update databricks-ai-functions skill for AI Functions v2 API#441qian-yu-db wants to merge 1 commit intomainfrom
qian-yu-db wants to merge 1 commit intomainfrom
Conversation
…ify) - Rewrite ai_classify section: v2 syntax (JSON string labels, VARIANT return, 2-500 labels, multi-label support, instructions option), legacy v1 preserved - Rewrite ai_extract section: v2 syntax (JSON schema with nested structures up to 7 levels/128 fields, typed fields, VARIANT return), composability with ai_parse_document, legacy v1 preserved - Update function selection tables and decision boundary across all files: "flat → ai_extract; nested → ai_query" becomes "structured (flat or nested) → ai_extract v2; extreme complexity → ai_query" - Rewrite pipeline Stage 3b from ai_query to ai_extract v2 for nested line-item extraction, with ai_query preserved as commented alternative - Add Pattern 3b showing v2 composable VARIANT chaining: ai_parse_document → ai_classify → ai_extract without intermediate text extraction - Update all VARIANT access patterns (header:response.X replaces header.X) - Add common issues rows for v2 return types and multi-label classification Co-authored-by: Isaac
Collaborator
|
@qian-yu-db I just merged one that I htink covers the core changes here. If there is anything you feel still needs added please create a PR with just that and submit it. |
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
ai_classifyv2: JSON string labels (2-500, was 2-20), VARIANT return type, multi-label support, label descriptions, instructions optionai_extractv2: JSON schema with nested structures (up to 7 levels, 128 fields), typed fields, VARIANT return type, composability withai_parse_documentai_query+from_jsonwithai_extractv2 for nested line-item extractionai_parse_document → ai_classify → ai_extract) without intermediate text extractionFiles changed
1-task-functions.mdai_classifyandai_extractsections with v2 as primary, v1 as legacySKILL.md4-document-processing-pipeline.md2-ai-query.mdReferences