Microsoft Fabric Updates Blog

Announcing AI functions for seamless data engineering with GenAI

If you saw the keynote at FabCon last fall, you may remember an early demo of AI functions in Fabric, a new feature that makes it easy to apply LLM-powered transformations to your OneLake data. We’re thrilled to announce that AI functions are now in preview.

With AI functions, you can harness the power of GenAI for summarization, classification, text generation, and so much more—all with a single line of code. It’s seamless to incorporate AI functions as part of data-science and data-engineering workflows, whether you’re transforming Spark or pandas DataFrames. There is no complex setup, no tricky syntax, and, hopefully, no hassle.

Getting started with AI functions

AI functions turbocharge your analytics workflow, whether you want to classify customer reviews by product categories or to generate action items with custom prompts.

To get started, just install and import the relevant libraries for AI functions with Python or PySpark code in your Fabric notebook. You can copy and paste this code from our documentation – Transform and enrich data seamlessly with AI functions under ‘Getting started with AI functions‘.

A GIF showing how easy it is to get started with AI functions in Fabric. Just install and import the relevant libraries using code samples in the public documentation.
A GIF showing how easy it is to get started with AI functions in Fabric. Just install and import the relevant libraries using code samples in the public documentation.

Once those libraries are installed and imported, you can call any of the following AI functions to transform and enrich your data with simple, lightweight logic:

AI functionDescription
ai.similarityCompare the meaning of input text with a single common text value, or with corresponding text values in another column.
ai.classifyClassify input text values according to labels you choose.
ai.analyze_sentimentIdentify the emotional state expressed by input text.
ai.extractFind and extract specific types of information from input text, for example locations or names.
ai.fix_grammarCorrect the spelling, grammar, and punctuation of input text.
ai.summarizeGet summaries of input text.
ai.translateTranslate input text into another language.
ai.generate_responseGenerate responses based on your own instructions.
Each of the eight AI functions has its own dedicated documentation, with sample code to get you started.
AI functions allow you to apply a variety of LLM-powered operations to your pandas or Spark DataFrames with simple, straightforward code.
AI functions allow you to apply LLM-powered operations to your pandas or Spark DataFrames with a single line of code.

The syntax is so straightforward that, you may not even need our documentation. For example, check out how simple it is to translate foreign customer-service call transcripts with the ai.translate() function:

A GIF showing how to translate customer-service call transcripts from Swedish into English using AI functions in Fabric, all with a single line of code.
A GIF showing how to translate customer-service call transcripts from Swedish into English using AI functions in Fabric, all with a single line of code.

Customizing AI functions

AI functions are designed to work out-of-the-box, with the underlying model and settings configured by default. Users who want more flexible configurations, however, can customize their solutions with a few extra lines of code.

If you want to use your own Azure OpenAI resources instead of the Fabric defaults—or if you want to experiment with the underlying language model’s properties—follow the instructions in our documentation – Customize the configuration of AI functions.

Next steps

We can’t wait for you to try out AI functions on your own data and let us know what you think. Submit your feedback on Fabric Ideas and join the conversation on the Fabric Community.

Before trying out the feature yourself, please make note of a few prerequisites:

We’ll be showing off AI functions—and more LLM-powered features on our roadmap—at the upcoming Microsoft Fabric Community Conference in Las Vegas.

Register now to secure a spot, we look forward to hearing from you soon!

Gerelateerde blogberichten

Announcing AI functions for seamless data engineering with GenAI

januari 21, 2026 door Michal Bar

Turning questions into KQL queries just became part of Real-Time Dashboard tile editing experience, using Copilot. This new feature brings the power of AI directly into the tile editing workflow. When editing a tile, you’ll now see the Copilot assistant pane ready to help you turn natural language into actionable queries. Whether you’re new to … Continue reading “Introducing Copilot for Real-Time Dashboards: Write KQL with natural language”

januari 8, 2026 door Adi Eldar

What if generating embeddings in Eventhouse didn’t require an external endpoint, callout policies, throttling management, or per‑request costs? That’s exactly what slm_embeddings_fl() delivers: a new user-defined function (UDF) that generates text embeddings using local Small Language Models (SLMs) from within the Kusto Python sandbox, returning vectors that you can immediately use for semantic search, similarity … Continue reading “Create Embeddings in Fabric Eventhouse with built-in Small Language Models (SLMs)”