Foundry IQ: Fabric ontology (Microsoft Fabric)
The fabricOntology Foundry IQ knowledge source grounds answers on data in a
Microsoft Fabric ontology: semantic models, lakehouses, warehouses, and KQL
databases exposed through that ontology. It runs next to your document
knowledge source and (optionally) Work IQ and Fabric Data Agent on the same
knowledge base. It does not replace them.
If you have not read the Grounding sources overview, start there. In short: this knowledge source is not a separate retrieval backend. It is registered on the Foundry IQ knowledge base, so a single request can pull from documents, from Microsoft 365 (via Work IQ), and from Fabric analytical data in one call.
Preview, per-user auth, data leaves the Azure boundary
Fabric ontology support uses a preview Foundry IQ API and requires an on-behalf-of (OBO) token for the signed-in user. Requests and intermediate data may route outside the Azure compliance boundary; operators must review this before enabling. Behavior and configuration may change without notice. Do not depend on it for production workloads until it is generally available.
Complete the Foundry IQ prerequisites first. The Prerequisites section below covers only what is specific to this source.
When to use Fabric ontology
Use the Fabric ontology knowledge source when:
- Users sign in to the GPT-RAG UI (or another authenticated client), so the orchestrator can obtain a delegated (OBO) token for the user.
- Answers benefit from live analytical data that lives in Fabric: revenue by region, headcount by team, warehouse metrics, or facts and dimensions a semantic model exposes.
- All target users have Fabric licenses and workspace access to the ontology.
Do not use it when:
- The deployment allows anonymous chat. It requires a signed-in user and cannot fall back to managed identity or app-only auth.
- The users do not have Fabric licenses or workspace access.
- Your compliance posture does not allow data flow outside the Azure compliance boundary. See the data egress caveat below.
Prerequisites
Work through these in order. All of them are hard blockers.
- A Microsoft Fabric workspace with an ontology item. The knowledge
source binds to one ontology at a time, identified by the pair
(
workspaceId,ontologyId). The ontology exposes the underlying semantic model, lakehouse, warehouse, or KQL data. - Tenant enablement. The Fabric ontology feature must be enabled at the tenant level by a Fabric admin.
- Fabric-licensed end users with access to the workspace and the ontology. Fabric enforces per-user permissions natively over the OBO token; GPT-RAG does not add its own ACL layer for this source.
- Same Entra tenant. The Fabric tenant, the Foundry / Search resource, and the GPT-RAG orchestrator must all be in the same Entra tenant. Cross-tenant is not supported.
- Foundry IQ preview API. The knowledge source requires the Foundry IQ
preview API that supports
kind: fabricOntology. GPT-RAG v3.4.1+ pins the2026-05-01-previewbaseline.
Configure Fabric ontology
The Fabric ontology source is opt-in and defaults to off. azd provision
(v3.4.1+) seeds the four keys automatically under the gpt-rag label with
FABRIC_IQ_ENABLED=false and the workspace, ontology, and knowledge-source
name as empty strings. You do not have to create them by hand. To turn it
on for an existing environment, edit the values in the App Configuration
blade (or az appconfig kv set --label gpt-rag --key ...) and restart the
orchestrator; or set the same values as azd env vars and re-run
azd hooks run postprovision and azd deploy.
About the
FABRIC_IQ_*prefix. The prefix is historical. These four keys configure thefabricOntologyknowledge source, not a separate "Fabric IQ" thing. The name stuck because the code shipped before the knowledge-source kinds were split. TreatFABRIC_IQ_*as the config namespace forfabricOntology. The Fabric Data Agent knowledge source has its ownFABRIC_DATA_AGENT_*keys.
| Key | Value |
|---|---|
FABRIC_IQ_ENABLED |
true |
FABRIC_IQ_KNOWLEDGE_SOURCE_NAME |
Any name for the KS; must match on both provision and orchestrator. Example: fabric-ontology-ks. |
FABRIC_IQ_WORKSPACE_ID |
GUID of the Fabric workspace that owns the ontology. |
FABRIC_IQ_ONTOLOGY_ID |
GUID of the ontology item within that workspace. |
azd provision renders the search resources and registers the Fabric
ontology knowledge source (kind: fabricOntology) on the Foundry IQ
knowledge base. azd deploy restarts the orchestrator so it picks up the
enable flag and knowledge source name.
The four keys must all be set for the knowledge source to be registered.
If any of FABRIC_IQ_KNOWLEDGE_SOURCE_NAME, FABRIC_IQ_WORKSPACE_ID, or
FABRIC_IQ_ONTOLOGY_ID is empty, GPT-RAG skips the source and continues
with document grounding (and Work IQ / Fabric Data Agent, if enabled).
How it works at runtime
When the source is enabled and a signed-in user asks a question:
- The orchestrator obtains an OBO token for the user, the same way it does for Work IQ.
- The Foundry IQ retrieve call includes the Fabric ontology knowledge
source in
knowledgeSourceParamsand forwards the OBO token as thex-ms-query-source-authorizationheader. - Fabric evaluates the user ontology permissions and runs the underlying query on the semantic model, lakehouse, warehouse, or KQL database.
- The response comes back with
fabricAnswer(natural language) andfabricRawData(a CSV-style extract). The orchestrator normalizes both into the standard reference shape and hands them to the LLM alongside document references.
Local Foundry IQ document sources always serve the request. If the OBO token is missing (for example, a background job), the Fabric ontology source is skipped with a warning and only local sources contribute. Managed identity is never used to reach this source, by design.
Data egress caveat
The Fabric ontology source may route request data and intermediate answers to Fabric endpoints that are not part of the Azure compliance boundary you selected for the Foundry / Search resource. Review this with your compliance team before enabling it on any tenant with data residency, sovereign cloud, or regulated-data constraints. If Fabric egress is not acceptable, do not enable it; document grounding and Work IQ are unaffected.
Troubleshooting
- No Fabric answers in responses. Confirm all four App Configuration keys are set. Check the orchestrator logs for a "Fabric ontology knowledge source skipped" warning; that usually points at a missing OBO token, an empty knowledge source name, or an empty workspace / ontology id.
403or empty results from Fabric. Verify the signed-in user has access to the Fabric workspace and the ontology item. Fabric enforces per-user permissions, so an OBO token for a user without ontology access will return an empty result.400on knowledge source registration. Confirm the Foundry IQ preview API version pinned by GPT-RAG matches your Foundry resource. The Fabric ontology source requires2026-05-01-previewat minimum.