Prerequisites
- A Microsoft Fabric workspace with access to AI services
- Running in a Microsoft Fabric notebook environment
Important notes
- This integration only works within Microsoft Fabric notebook environments
- Authentication is handled automatically - no API keys required
- Azure OpenAI usage in Fabric is subject to your organization’s Fabric capacity and policies
Chat Completions with Standard Models
Let’s start by using a standard chat model (gpt-4.1) for a simple Q&A application. Create a table in Pixeltable with a computed column that calls Azure OpenAI via Fabric:Chat Completions with Reasoning Models
Fabric also supports reasoning models like gpt-5, which are optimized for complex reasoning tasks. Note: Reasoning models have different parameter requirements:- Use
max_completion_tokensinstead ofmax_tokens - Don’t support the
temperatureparameter
Embeddings for Semantic Search
Fabric also supports embedding models for semantic search and similarity operations. Let’s create a knowledge base with semantic search capabilities:Combining Chat and Embeddings: RAG Pattern
Let’s combine embeddings and chat completions to build a simple Retrieval-Augmented Generation (RAG) system:Available Models in Fabric
The following models are currently available in Microsoft Fabric: Chat Models:gpt-5(reasoning model)gpt-4.1gpt-4.1-mini
text-embedding-ada-002text-embedding-3-smalltext-embedding-3-large
Key Features
- Automatic Authentication: No API keys required - authentication is handled by Fabric
- Rate Limiting: Pixeltable automatically handles rate limiting based on Azure OpenAI response headers
- Batching: Embedding requests are automatically batched for efficiency (up to 32 inputs per request)
- Incremental Processing: Computed columns only run on new or updated data
- Versioning: All data and transformations are automatically versioned