In most organizations, information warehouses maintain structured information, whereas unstructured information is saved within the information lake. This works nicely for analytics workloads, which devour structured information at scale, serving a recognized physique of stories day in and time out.
AI workloads, nonetheless, require completely different inputs. AI fashions usually must parse unstructured information – like evaluations, assist tickets, and PDFs – and mix them with the structured information to coach, construct, and serve fashions. So an analyst who desires sentiment on assist tickets has to ship the rows out to a service, await predictions, and sew them again right into a desk by hand. It is gradual, it breaks when a schema modifications, and it introduces pointless safety and governance dangers.
AI Capabilities resolve this by bringing the AI on to your information, fairly than transferring your information to a separate AI atmosphere. You invoke fashions inside customary SQL queries, protecting the whole inference course of inside your current pipelines and Unity Catalog governance. This structure essentially modifications how you’re employed with AI in your information warehouse:
Governance by default: As a result of AI Capabilities respect Unity Catalog permissions, your information stays safe and personal. The mannequin solely accesses the information you explicitly allow.SQL-native simplicity: When you can write a SELECT assertion, you’ll be able to construct with AI. Databricks manages the complexity – planning, parallelization, and retries so you do not have to fret about cluster administration or exterior orchestration. It is simply as straightforward to run an inference on thousands and thousands of rows as one row, the identical question scales with out rewriting.Unified billing: Remove the complexity of reconciling disparate dashboards. AI utilization surfaces in system.billing.utilization proper alongside your customary Databricks SQL warehouse prices.Specialised features: Get higher outcomes for much less value. By utilizing task-specific features – corresponding to ai_classify, ai_extract, ai_translate, and ai_parse_document – you leverage fashions tailor-made for particular jobs fairly than overpaying for general-purpose inference.

You should use these AI features from anyplace on Databricks, together with notebooks, Lakeflow Spark Declarative Pipelines, and Workflow. However on this put up we’ll be specializing in calling these features from Databricks Lakehouse particularly. The use instances beneath will present you how one can combine these AI features into workloads the place you must mix structured information in your information warehouse with unstructured information, both from exterior the information warehouse or by producing it your self by way of GenAI-enabled features.
Use case 1: Doc intelligence, from uncooked recordsdata to structured rows
ai_parse_document acts because the ingestion bridge that converts uncooked binary file content material – like PDFs or pictures – into readable textual content. As soon as parsed, ai_extract handles the granular extraction of particular keys and values. This mixed method eliminates the necessity for fragile, customized OCR pipelines or third-party parsing companies that always break throughout schema modifications.
On this use case, we level the ai_parse_document at a Databricks quantity that incorporates invoices. As soon as these invoices are parsed an AI parse doc produces the ends in JSON, that are then handed to the ai_extract perform, wherein we outline what entities we wish to extract from these invoices. The result’s a structured desk with the fields that we would like extracted from the invoices.
Lineage now runs from the uncooked PDF to the extracted rows inside a single question plan. The bridge individuals construct for this by hand – a Python OCR service, an LLM name and a JSON-flattening step – all collapse into the question.
Demo pocket book: Doc intelligence
Use case 2: Sentiment evaluation on buyer suggestions
The ai_classify perform performs zero-shot classification, mapping free-text suggestions into a selected set of user-defined labels with out requiring mannequin coaching. This course of transforms chaotic, unstructured textual content into ruled, queryable columns, making sentiment and matter information instantly accessible for BI dashboards and government reporting.
On this instance, we wish to classify buyer evaluations from the bronze.nps_responses desk into optimistic, adverse, impartial, and blended.
Demo pocket book: Sentiment evaluation
Use case 3: Inline translation for multilingual information
With ai_translate, you’ll be able to normalize multilingual information right into a single goal language straight throughout the question layer. This prevents information silos and fragmentation, permitting all downstream evaluation (together with classification and extraction) to function on the whole international dataset concurrently fairly than processing English-only slices.
On this instance, we extract sentiment from completely different buyer evaluations after which we translate them into English.
Demo pocket book: Translation and normalization
Use case 4: Classification and routing at scale
Specializing in operational effectivity, ai_classify converts free-form inputs like assist tickets or name transcripts into actionable classes. By figuring out the intent and urgency of incoming suggestions on the level of ingestion, it permits automated, clever routing to the suitable groups or automated response programs.
Within the use case beneath we’re ingesting completely different assist tickets from a desk after which utilizing ai_classify to find out the consumer intent and urgency of the ticket.
Demo pocket book: Classification and routing
Use case 5: Gross sales-call structured extraction with ai_extract
The ai_extract perform is designed to mine semi-structured info from long-form content material, corresponding to gross sales name transcripts, and convert narrative textual content into discrete, structured fields. This gives important worth by placing qualitative info straight into BI instruments, successfully turning spoken conversations into queryable metrics like deal stage and threat flags.
On this use case we’re mining a protracted transcript to establish what the following step, the deal stage, the danger flag, and the danger cause is in order that salespeople can motion the end result of the assembly that produced the transcript.
Demo pocket book: Gross sales-call extraction
Use case 6: Generative drafting with ai_query
ai_query is essentially the most normal perform and the muse for the remaining: it means that you can ship a immediate to any Databricks-hosted Basis Mannequin serving level you’ve entry to, and it’ll return the mannequin’s reply for every row.
On this use case, we will use ai_query to draft a renewal outreach e mail for each buyer account within the fictional gold.renewal_signals desk which reveals us which accounts are primed for renewal.
Since you write the immediate, it may do something the mannequin can do, which is why it handles the instances the extra particular features don’t.
Demo pocket book: Generative drafting
Professional ideas for manufacturing
Tag jobs on day one: This may permit you to attribute the price of AI Capabilities to the appropriate jobsTry the task-specific perform first: Use ai_query solely when none of ai_classify, ai_extract, ai_parse_document or ai_translate fitsAsk for structured output: For ai_query, use responseFormat for structured output. When you go a DDL STRUCT schema, you get typed fields as a substitute of uncooked strings; JSON-schema/json_object codecs nonetheless return JSON strings.Be intentional about mannequin selection: Each basis mannequin has trade-offs together with value, efficiency, and supported enter codecs. Just be sure you are intentional about which mannequin you wish to select for which use caseSample earlier than you scale: Run no less than 10,000 rows, learn the output, then run the remaining. The fee-accuracy trade-off is restricted to every use case.Deal with prompts as code: Model them, evaluation them in pull requests, remark them. A immediate is a change with enterprise logic in it on this workflow
What this implies on your information warehouse technique
The thread by means of all six is identical. The AI runs in the identical place as the remainder of the warehouse: one platform, one governance mannequin, one invoice, one set of pipelines. Any line of your current SQL ETL can decide up an AI step with out you standing up a system to host it, and every Python script that used to translate, rating or classify information on the facet turns into a candidate for a one-line alternative.
So begin with one column. Take the workload the place the present service is most fragile, rewrite it as a SELECT, run it on 10,000 rows, and browse what comes again. You’ll know after a fast dash whether or not it suits – and you’ll have stopped paying the additional overhead of delivery information out simply to make use of it.
Demo notebooks
Every pocket book ships with inline pattern information, the SQL step-by-step, and the output it’s best to count on.

