Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Alaahady
Advocate I
Advocate I

Assistance with Fabric AI Tool Notebook Setup

I find it interesting that Fabric AI is now available within notebooks. I tried running one of the sample prompts, like "Calculate similarity" or "Clasify" but encountered an error. Do I need to perform any additional setup to get it working properly?

 

Code :

# This code uses AI. Always review output for mistakes.
import pandas as pd
df = pd.DataFrame([
        "This duvet, lovingly hand-crafted from all-natural fabric, is perfect for a good night's sleep.",
        "Tired of friends judging your baking? With these handy-dandy measuring cups, you'll create culinary delights.",
        "Enjoy this *BRAND NEW CAR!* A compact SUV perfect for the professional commuter!"
    ], columns=["descriptions"])

df["category"] = df['descriptions'].ai.classify("kitchen", "bedroom", "garage", "other")
display(df)
---
AttributeError Traceback (most recent call last) /tmp/ipykernel_6621/509787542.py in ?()
6 "Tired of friends judging your baking? With these handy-dandy measuring cups, you'll create culinary delights.",
7 "Enjoy this *BRAND NEW CAR!* A compact SUV perfect for the professional commuter!"
8 ], columns=["descriptions"])
9
---> 10 df["category"] = df['descriptions'].ai.classify("kitchen", "bedroom", "garage", "other")
11 display(df) ~/cluster-env/trident_env/lib/python3.11/site-packages/pandas/core/generic.py in ?(self, name)
6200 and name not in self._accessors
6201 and self._info_axis._can_hold_identifiers_and_holds_name(name)
6202 😞
6203 return self[name]
-> 6204 return object.__getattribute__(self, name)
AttributeError: 'Series' object has no attribute 'ai'
 
8 REPLIES 8
v-nmadadi-msft
Community Support
Community Support

Hi @Alaahady 

May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.


Thank you

v-nmadadi-msft
Community Support
Community Support

Hi @Alaahady 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.


Thank you.

Thank you @v-nmadadi-msft for follow up.

It is still not resolved 

 

Hi @Alaahady ,

Another Prerequisite for AI functions is 
Depending on your location, you might need to enable a tenant setting for cross-geo processing.

Overview of Copilot in Fabric - Microsoft Fabric | Microsoft Learn

Please check back with your admin again and make sure that setting is enabled.


 

I hope this information helps. Please do let us know if you have any further queries.
Thank you

AntoineW
Solution Sage
Solution Sage

Hello @Alaahady 

The AI functions in Fabric Notebooks are only enabled on paid Fabric capacities (starting at F2). They won’t work on a trial capacity.

 

Verify that your workspace is attached with a paid capacity, if not : 

 

  • Move the workspace to a paid Fabric capacity (F2 or above).

    • Workspaces Settings > Licences > Assign to an existing F-capacity.

  • Reopen your notebook and re-run the same code.

 

Hope it can help you 🙂 

Best regards,

Antoine

 

Current license
Premium capacity

Check if the setting is enabled :

 

To use AI functions with the built-in AI endpoint in Fabric, your administrator needs to enable the tenant switch for Copilot and other features that are powered by Azure OpenAI.

 

AntoineW_0-1760688695116.png

 

 

Thank you @AntoineW  

The admin confirmed, It is enabled

But I'm still not able to use it

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Fabric Update Carousel

Fabric Monthly Update - October 2025

Check out the October 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.