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!

Related blog posts

Announcing AI functions for seamless data engineering with GenAI

May 23, 2025 by Ryan Majidimehr

Microsoft Build 2025 delivered a powerful vision for the future of data and AI, with Microsoft Fabric and Power BI at the heart of the story. From AI-powered productivity with Copilot to deep integration with Cosmos DB, this year’s announcements reinforced Microsoft’s commitment to unifying the data experience across roles, tools, and industries. Fabric: The … Continue reading “That’s a wrap for Build 2025!”

May 22, 2025 by Eren Orbey

With AI-powered capabilities in Data Wrangler, you can now do even more to accelerate exploratory analysis and data preparation in Fabric.