Configuring AI
This guide walks you through setting up AI providers in Semantic Modeler. AI powers three features: Model Documentation, the Model Health AI scan, and the DAX Debugger.
All configuration happens in Settings > AI.
AI Tasks
The settings page splits AI into two tasks, each with its own provider:
| Task | What It Powers | Model Recommendation |
|---|---|---|
| Documentation & Analysis | Model documentation and the Model Health AI scan | A reasoning or general-purpose model (e.g., Claude, GPT-4o) |
| DAX Assistant | Generating, explaining, and fixing DAX | A code-oriented model (e.g., Codellama, Claude, GPT-4o) |
You can use the same provider for both, or mix and match - for example, Claude through Anthropic for Documentation & Analysis and a local Codellama instance through Ollama for the DAX Assistant.
Providers
Each task supports the following providers:
| Provider | What It Is |
|---|---|
| FactFoundry Hosted (license) | AI hosted by FactFoundry - no API key or configuration needed. Available with an AI-enabled license. |
| Anthropic (your API key) | Connect directly to Anthropic's API using your own key. |
| OpenAI / Local (OpenAI-compatible) | Any endpoint that speaks the OpenAI API format - including OpenAI itself, Ollama, LM Studio, and other local runtimes. |
| Azure OpenAI (your key) | An Azure OpenAI resource you manage. |
| Azure AI Foundry - any model (your key) | Non-Claude models (GPT, Llama, Mistral, Phi, etc.) deployed in your Azure AI Foundry resource. |
| Azure AI Foundry - Claude (your key) | Claude models deployed through Azure AI Foundry. Uses a separate authentication flow from other Foundry models. |
The DAX Assistant also has a Same as Documentation & Analysis option that mirrors whatever you configured for the first task.
Setting Up a Provider
Open Settings > AI, then configure each task section.
FactFoundry Hosted
- Select FactFoundry Hosted (license) from the Provider dropdown.
- No further configuration is needed - this uses your license automatically.
Anthropic
- Select Anthropic (your API key) from the Provider dropdown.
- Paste your Anthropic API key and click Save.
- Optionally select a model from the dropdown (or type one in). Leave it blank to use the default.
- Click Test connection to verify.
OpenAI / Local (OpenAI-compatible)
This provider works with OpenAI's API, Ollama, LM Studio, and any other runtime that serves an OpenAI-compatible endpoint.
- Select OpenAI / Local (OpenAI-compatible) from the Provider dropdown.
- Choose an Endpoint preset or select Custom to enter your own URL.
- Enter the Base URL. This must end in
/v1. Examples:- OpenAI:
https://api.openai.com/v1 - Ollama:
http://localhost:11434/v1 - LM Studio:
http://localhost:1234/v1 - Custom endpoint:
https://ai.myworknetwork.xyz/api
- OpenAI:
- Select or type a Model. For Ollama, use the exact tag (e.g.,
codellama:latest,qwen2.5-coder:latest). - If your endpoint requires an API key, paste it and click Save. Local runtimes like Ollama and LM Studio typically don't need one.
- Click Test connection to verify.
Azure OpenAI
- Select Azure OpenAI (your key) from the Provider dropdown.
- Enter your Azure OpenAI Endpoint (e.g.,
https://my-resource.openai.azure.com/). - Enter the Deployment name - this is your deployment name, not the base model ID (e.g.,
gpt-4o). - Paste your API Key and click Save.
- Click Test connection to verify.
Azure AI Foundry - Any Model
Use this for GPT, Llama, Mistral, Phi, and other non-Claude models deployed in your Foundry resource.
- Select Azure AI Foundry - any model (your key) from the Provider dropdown.
- Enter your Foundry Models Endpoint (e.g.,
https://my-resource.services.ai.azure.com/models). - Enter the Model / deployment name (e.g.,
gpt-4o,Llama-3.3-70B-Instruct). - Paste your API Key and click Save.
- Click Test connection to verify.
Note
For Claude models deployed in Azure AI Foundry, use the Azure AI Foundry - Claude option instead.
Azure AI Foundry - Claude
- Select Azure AI Foundry - Claude (your key) from the Provider dropdown.
- Enter your Foundry Resource Name - this is the
<name>portion of<name>.services.ai.azure.com. - Paste your Foundry API Key and click Save.
- Optionally enter a Model / deployment name. Leave it blank to use the default.
- Click Test connection to verify.
Using Different Providers Per Task
You might want a large reasoning model for Documentation & Analysis (which benefits from understanding business context) and a fast code model for the DAX Assistant (which benefits from code-generation speed).
To set this up, configure Documentation & Analysis with one provider, then configure the DAX Assistant separately with a different provider. If you want both tasks to use the same settings, select Same as Documentation & Analysis in the DAX Assistant section.
Privacy
API keys are stored only on your machine and are sent directly to the provider you selected - never to FactFoundry. The same applies to the data sent during AI requests: only schema metadata (table names, column names, data types, DAX expressions, and relationship definitions) is sent. No raw data from your tables is ever transmitted.