ai_parse_document improvements for signatures and layouts
The ai_parse_document function now detects signature regions and identifies document layouts more accurately.
O que mudou
The ai_parse_document function now includes enhancements to isolate signature regions and recognize unstructured document layouts with higher accuracy.
Use cases
Imagine you have scanned contracts or invoices and need to extract specific content blocks, including validation of signed fields.
- Detect signature sections in PDFs or images.
- Extract structured elements from complex layouts.
- Save rendered page images to Unity Catalog volumes.
How to use
You can call the function directly by passing the binary document content in a SQL query.
SELECT
path,
ai_parse_document(
content,
map(
'version', '2.0',
'imageOutputPath', '/Volumes/catalog/schema/volume/directory/'
)
) AS parsed
FROM my_catalog.my_schema.documents;
What happens in this code:
- The source table provides the binary file content.
- The
ai_parse_documentfunction processes the file using schema version 2.0. - The
imageOutputPathparameter saves rendered pages to the specified Unity Catalog volume. - The structured result is returned as a
VARIANTtype containing detected elements such as text, tables, and signatures.
Limitations and requirements
- Requires Databricks Runtime 17.3 or higher.
- Supports PDF, JPG/JPEG, PNG, TIFF/TIF, DOC/DOCX, and PPT/PPTX file formats.
- 500-page limit per document when the
pageRangeparameter is omitted.
- ai_parse_document
- unity catalog
- databricks sql
- variant
- document parsing
ai_parse_document quality improvements: signature detection and layout prediction
Resumo e explicação gerados por IA a partir da release note oficial. Em caso de dúvida, a documentação oficial da plataforma prevalece.
Relacionadas
- DatabricksGA
Repositórios de pacotes em nível de workspace para Databricks Apps
Administradores de workspace podem configurar repositórios padrão de pacotes Python e npm para Databricks Apps.
databricks apps · workspace settings - DatabricksGA
Redimensione partições de stateful streaming sem perder o checkpoint no Databricks
Agora é possível alterar o número de partições de shuffle em queries Structured Streaming e pipelines Lakeflow sem descartar o estado do checkpoint.
structured streaming · lakeflow - DatabricksAtualização
Google Gemini 4 Argon disponível no Unity Gateway do Databricks
O modelo multimodal Google Gemini 4 Argon já pode ser acessado via Foundation Model APIs e Unity Gateway.
unity catalog · foundation model apis