Intelligent document processing
Intelligent Document Processing (IDP) converts unstructured content—such as PDFs, DOCX files, images, and presentations—into structured, enriched data that powers downstream agents, applications, and analytics.
Databricks gives you two ways to run IDP, both built on the same research-developed AI Functions:
- Agent Bricks UI: A no-code, visual experience for parsing, extracting, and classifying documents. Use it to test sample documents, refine a schema or labels, and visually validate results before you scale.
- SQL AI Functions: Run intelligent document processing functions directly on the Lakehouse. Use them to process documents at scale, compose stages together, and build governed, production-grade pipelines in Lakeflow pipelines.
Intelligent document processing capabilities
Capability | Agent Bricks UI | SQL function |
|---|---|---|
Convert PDFs, DOCX, images, and PPTs into structured text, tables, and figure descriptions. | ||
Pull structured fields from documents or plain text using a schema you define. | ||
Assign predefined categories to documents or text, supporting up to 500+ labels. | ||
Transform parsed documents into semantic chunks ready for retrieval-augmented generation (RAG) and AI Search indexing. |
|
Common use cases
IDP on Databricks powers a wide range of downstream applications:
- Retrieval-augmented generation (RAG): Parse and structure documents to improve chunking, retrieval quality, and grounding for LLM applications.
- Knowledge extraction and analytics: Extract key fields and metadata to enable search, reporting, and business intelligence on document data.
- Agent-driven workflows: Route, classify, and enrich documents to support automated decision-making and task execution.
- Document understanding and classification: Organize large document corpora by type, topic, or content for downstream processing.
How it works
Databricks enables intelligent document processing as a unified, end-to-end workflow on the Lakehouse. Ingestion, parsing, enrichment, and downstream analysis are built on a single platform, so each stage works seamlessly together without requiring complex integration or data movement.
-
Ingest and orchestrate
Use Lakeflow pipelines to ingest raw documents (such as PDFs, images, and DOCX files) and orchestrate your pipelines. Because ingestion and orchestration are natively integrated with the Lakehouse, documents flow directly into downstream processing without additional infrastructure.
-
Parse documents (Bronze layer)
Apply
ai_parse_documentto convert raw files into structured representations. This creates a standardized bronze layer that captures text, tables/image descriptions, and document structure, forming a consistent foundation for all downstream use cases. -
Extract and classify
Use
ai_extractandai_classifyto enrich parsed documents with structured fields and metadata. These functions operate directly on the parsed outputs, enabling you to extract key information, classify documents, and route them through workflows without additional transformation steps. -
Prepare for retrieval (RAG)
Apply
ai_prep_search(Beta) to transform parsed documents into semantic chunks enriched with document-level context such as titles, section headers, and page references. The output is formatted for AI Search indexing, providing a consistent foundation for RAG and retrieval workloads. -
Analyze and operationalize
Leverage additional AI Functions or other tools (AI/BI dashboards, Apps, AI Search) for downstream analytics, retrieval (RAG), and agent-driven workflows. Because all data remains on the Lakehouse, structured document data can be immediately used for search, dashboards, and applications.