ai_parse_document function now extracts chart data as structured JSON
The ai_parse_document function now extracts chart values from unstructured documents as structured JSON detailing series, legends, and axes.
O que mudou
The ai_parse_document function converts unstructured documents into VARIANT-formatted elements. Chart elements identified as figures now also return chart data as structured JSON within the content, making it easier to use in search and AI agents.
Use cases
Imagine you have PDF reports with financial performance charts and need to feed a search database with those numbers.
- Extract series data, legends, and axes from charts inside documents.
- Integrate visual chart information with search and AI agents.
- Process files such as PDF, DOCX, and images in Databricks pipelines.
How to use
Below is an example of applying the function to binary files stored in a Unity Catalog volume:
SELECT
path,
ai_parse_document(
content,
map(
'version', '2.0',
'imageOutputPath', '/Volumes/catalog/schema/volume/directory/',
'descriptionElementTypes', '*'
)
) as parsed_doc
FROM READ_FILES('/Volumes/data/documents/', format => 'binaryFile');
What happens in this code:
- Reads binary files from the specified directory using the READ_FILES function.
- Applies the ai_parse_document function specifying schema version 2.0.
- Saves rendered page images into the specified Unity Catalog volume.
- Returns the full document structure in VARIANT format, including charts converted to JSON.
Limitations and requirements
- Requires Databricks Runtime 17.3 or higher.
- If using serverless compute, the serverless environment version must be set to 3 or higher.
- Available only in selected regions with AI function support.
- Input files must be stored as binary data (BINARY), such as reads from volumes using the binaryFile format.
- ai_parse_document
- ai functions
- databricks sql
- unity catalog
- unstructured data
ai_parse_document now extracts chart data as JSON
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