--- description: Choose which language model (LLM endpoint) and embedding model (Embedding endpoint) your organization uses, including your own OpenAI-compatible or Anthropic-compatible endpoints. --- # Inference **Settings** → **Administration** → **Inference** shows which language model and which embedding model your organization uses. People with the right capability can also connect the organization to its own LLM and embedding endpoints. Your plan's features list this as **Customer-hosted inference**. The page has two sections, and you set each one separately: | Section | Endpoint | What it does | |---|---|---| | **Chat** | LLM endpoint | The language model that answers conversations and powers the other AI features. | | **Search** | Embedding endpoint | The embedding model that turns your semantic layer into vectors, so you can search it by meaning as well as by keyword. | !!! info "Availability" - **Who can do this:** any member who can open the page can see which inference the organization uses. To add, edit, test or remove endpoints, you need the **Manage inference** capability (for the organization). - **Plan:** to add, edit or test your own endpoint, your plan must include **Customer-hosted inference**. You can still remove an endpoint without it. On a self-managed deployment, the feature is included unless your licence excludes it. - **Deployment:** Actian SaaS and self-managed deployments. ## Open the Inference page 1. Open **Settings**. 2. Under **Administration**, select **Inference**. You see **Inference** in the settings menu if you have the **Manage inference** capability or Studio access. Members without either one, such as members with only **Chat** or only **Manage billing**, don't see it. If you can open the page but don't have **Manage inference**, it's read-only and shows: *"Only members with Manage inference can change your organization's inference."* ### The Manage inference capability **Manage inference** is an organization-level capability. Its description in the access editor reads: *"Choose the organization's LLM and Embedding endpoints: its own OpenAI-compatible APIs or the deployment's default. Grants Explorer access only."* The **Administrator** preset includes it. To grant it to someone, edit their access in **Settings** → **Members**. See [Members](members.md) for how to edit a member's access. ### Check whether your plan includes it Go to **Settings** → **Usage**. In the **Features** section, the **Customer-hosted inference** row shows **Included** or **Not included**. **Usage** appears only if you have Studio access. Without it, open the Inference page instead: if your plan doesn't include the feature, the page says so (see the message below). If your plan doesn't include it, members with **Manage inference** see this message on the Inference page: *"Your plan doesn't include customer-hosted inference, so your organization uses the deployment's default. Contact Actian to add it."* The **Add** and **Edit** buttons are hidden. A **Remove** button still appears for any endpoint the organization already has, so you can always go back to the default. ## Sources Each section has a **Source** row with one of these values: | Source | Meaning | |---|---| | **Actian Inference** | Hosted vendor models that Actian provides access to. The page doesn't show the vendor or model names. | | **Provided by your administrator** | On a self-managed deployment, a model API that the deployment's operator set up as the default for everyone. | | **Your organization's own endpoint** | An endpoint your organization added on this page. The page also shows its **Base URL**, **Model** and other details. | | **None** | Nothing serves this section. See below for what that means. | When **Chat** shows **None**, the page reads: *"Chat needs an LLM endpoint. Conversations are blocked until someone with Manage inference adds one."* In a conversation, members see **Chat needs an LLM endpoint** and *"No language model is connected for your organization yet. Ask your administrator to connect an LLM endpoint, then try again."* When **Search** shows **None**, the page reads: *"Search matches keywords only (lexical) until an Embedding endpoint is added."* Everything else keeps working. !!! note "Air-gapped deployments" Actian Inference isn't available on air-gapped self-managed deployments. Any default there comes from your administrator, and the source shows **Provided by your administrator** (or **None** if they haven't set one up). ## Chat: LLM endpoint ### What your LLM endpoint must support - **One of two APIs.** AI Analyst can call either an **OpenAI-compatible chat completions API** or an **Anthropic-compatible Messages API**. You choose which one in the **API** field. It doesn't call Amazon Bedrock or Google Vertex APIs directly. Use a vendor's compatible API, such as the Azure OpenAI v1 API, Anthropic's own Messages API, or put a compatible gateway such as LiteLLM in front of the vendor. - **Tool calling.** The AI Analyst works by calling tools, so the model must be able to call a tool when it's offered one. The **Test** checks this. - **A base URL that includes the API version path**, for example `https://llm.example.com/v1`. For an OpenAI-compatible endpoint, AI Analyst adds `/chat/completions` to the base URL. For an Anthropic-compatible endpoint, it adds `/messages`, so enter the Messages API root such as `https://api.anthropic.com/v1`. It doesn't follow redirects. - **An address this deployment is allowed to reach.** See [Network addresses](#network-addresses). ### Add or edit an LLM endpoint 1. Go to **Settings** → **Administration** → **Inference**. 2. In the **Chat** section, select **Add LLM endpoint**. If your organization already has its own endpoint, select **Edit** instead. 3. In the **LLM endpoint** dialog, fill in the fields: | Field | Required | What to enter | |---|---|---| | **API** | Yes | **OpenAI-compatible** for a chat completions API, or **Anthropic-compatible** for a Messages API. The default is **OpenAI-compatible**. | | **Base URL** | Yes | The endpoint's base URL, including the version path (for example `https://llm.example.com/v1`, or `https://api.anthropic.com/v1` for the Messages API). | | **API key** | No | The key the endpoint expects. Leave it blank if the server needs no key. See [How API keys are handled](#how-api-keys-are-handled). | | **Model** | Yes | The model name to request from the endpoint. | | **Fast model** | No | A model for quick calls such as conversation titles. If you leave it blank, AI Analyst uses the **Model** above. | | **Capabilities** | Yes | What the model supports. The options depend on the **API** you chose. The default is **Generic**. See [Choose Capabilities](#choose-capabilities). | 4. Select **Test**. The button becomes available once **Base URL** and **Model** are filled in. 5. Wait for the result. When the test passes, the dialog shows *"Test passed. The model called a tool and replied:"* followed by the model's one-sentence reply. 6. Select **Save**. The confirmation reads *"Inference updated."* How **Test** and **Save** work together: - **Save** stays unavailable until a Test passes for exactly the values now in the form. If you change any field after a passing Test, you need to test again. - The Test offers the model a tool and requires the model to call it. A model that answers without calling the tool fails the Test, and you can't save it. - The Test checks the **Model** only, not the **Fast model**, so double-check the fast model's name. - The Test times out after 30 seconds and doesn't retry. - AI Analyst runs the same check again when you select **Save**. If the endpoint stopped working since your Test, it isn't saved. Your organization can have one LLM endpoint of its own. A saved endpoint takes effect from the next request or conversation turn, with no restart. ### Choose Capabilities You declare the model's **Capabilities** yourself. AI Analyst never guesses them from the model name. The options depend on the **API** you chose: the two OpenAI-compatible options apply to a chat completions API, and the two thinking options apply to an Anthropic-compatible Messages API. If you switch **API**, the **Capabilities** field switches to **Generic** unless your choice applies to the new API too. | Option | API | When to choose it | What AI Analyst sends | |---|---|---|---| | **Generic (tool calling, no reasoning options)** | Both | Most models, or when you're unsure. | No reasoning or thinking options. | | **Reasoning (accepts a reasoning effort)** | OpenAI-compatible | Models that accept a `reasoning_effort` parameter. | A low reasoning effort on the agent conversation loops (AI Analyst, Steward and background triage). Quick, single-step calls such as titles never send reasoning options. | | **Extended thinking** | Anthropic-compatible | Models that take Anthropic's extended-thinking shape with a token budget. | Extended thinking with a 1,024-token budget on the agent conversation loops. Quick calls such as titles never send thinking options. | | **Adaptive thinking** | Anthropic-compatible | Models that take Anthropic's adaptive thinking shape with an effort level. | Adaptive thinking at a low effort, with thinking summarised so it appears in the conversation's steps view, on the agent conversation loops. Quick calls such as titles never send thinking options. | If a model doesn't accept reasoning or thinking options, choose **Generic**. The **Test** sends no reasoning or thinking options, so it can't tell you whether your choice is right. If conversations fail after you choose a reasoning or thinking option, switch to **Generic**. This field describes the model. It isn't a member capability. ### Which features use which model When your organization has its own LLM endpoint, every language-model call for the organization goes to that endpoint. | Model | Used for | |---|---| | **Model** | AI Analyst conversations in Explorer, Steward conversations, background triage that feeds the Steward Inbox, AI Analyst suggestions, AI-generated models in the semantic layer, and repairing generated SQL that fails because of a database dialect error. | | **Fast model** | Conversation titles, and reading the text of attached PDFs that have little or no extractable text (such as scanned documents). | !!! tip "Reading scanned PDFs" When a PDF yields almost no text (under 40 characters) or text extraction fails, AI Analyst sends the PDF file itself to the **Fast model** as a file part (for an Anthropic-compatible endpoint, a PDF document block). To read scanned PDFs, your fast model and endpoint must accept PDF input. Image input alone isn't enough. ### No fallback to Actian Inference If your organization has its own LLM endpoint, AI Analyst never sends its requests to Actian Inference. If your endpoint fails, the conversation turn fails. Nothing is rerouted. In that case, members see: *"Your organization's own LLM endpoint didn't answer. An administrator can check it in Settings → Inference."* with a **Try again** button. ### Remove your LLM endpoint 1. In the **Chat** section, select **Remove**. 2. In **Remove the LLM endpoint?**, confirm with **Remove**. From the next turn, your organization's chat goes back to the deployment's default. If the deployment has no default, chat is blocked until someone adds an LLM endpoint. You need **Manage inference** to remove an endpoint, but your plan doesn't have to include Customer-hosted inference. ## Search: Embedding endpoint ### What embeddings are used for The Embedding endpoint turns your semantic layer into vectors so it can be searched by meaning. Two features use this search: - The Studio search palette (its search box reads *Search models, metrics, glossary, fields…*), which says *"Type to search the semantic layer by meaning or name."* - The search tool that the AI Analyst and Steward use to find Models, Metrics and other semantic-layer items. Search runs in one of two modes: | Mode | When | What it does | |---|---|---| | **Hybrid** | An Embedding endpoint is available | Combines meaning-based (vector) matches with keyword matches. | | **Lexical** | No Embedding endpoint, or it can't be reached | Keyword matching only. When this happens, the agents are told to try likely names and synonyms. | You never need an Embedding endpoint: without one, search uses keywords only and everything else keeps working. ### What is sent to the Embedding endpoint Only semantic-layer metadata and search text are sent. No rows from your data sources are sent. - **Models and Metrics:** name, description and agent guidance. - **Glossary terms:** term, definition and synonyms. - **Dimensions, Measures and Filters:** name, description and the name of the Model they belong to. - **Search queries:** text that users type in the Studio search palette, and queries that the AI Analyst and Steward write through their search tool. - **The Test:** the fixed sample text "Revenue by region". If your organization has its own Embedding endpoint, none of this text goes to the deployment's embedding model. The vectors your endpoint returns are stored in AI Analyst alongside your semantic layer and are used only for your organization's search. ### What your Embedding endpoint must support - **An OpenAI-compatible embeddings API** at `POST {Base URL}/v1/embeddings`. - **A base URL without `/v1`.** AI Analyst removes trailing slashes and adds `/v1/embeddings` itself, so enter `https://api.openai.com`, not `https://api.openai.com/v1`. This is the opposite of the LLM endpoint, whose base URL includes `/v1`. - **An address this deployment is allowed to reach.** See [Network addresses](#network-addresses). When AI Analyst indexes or searches, it also sends `GET {Base URL}/info` with the same key. Text Embeddings Inference servers answer it with the model they serve. If the server answers with an error status or a response that doesn't name a model, AI Analyst skips the check. If the server names a model that differs from your **Model**, AI Analyst refuses its vectors and search stays keyword-only. If the request itself fails, such as a network error or timeout, the embedding request fails too. The **Test** doesn't make this check, so a passing Test doesn't guarantee hybrid search. On a Text Embeddings Inference server, enter the exact model id the server reports. If you use a gateway or allow-list, permit `/info` as well as `/v1/embeddings`. ### Add or edit an Embedding endpoint 1. Go to **Settings** → **Administration** → **Inference**. 2. In the **Search** section, select **Add Embedding endpoint**. If your organization already has its own endpoint, select **Edit** instead. 3. In the **Embedding endpoint** dialog, fill in the fields: | Field | Required | What to enter | |---|---|---| | **Base URL** | Yes | The base URL without `/v1` (for example `https://api.openai.com`). | | **API key** | No | The key the endpoint expects. Leave it blank if the server needs no key. | | **Model** | Yes | The embedding model name to request. | 4. Select **Test**. AI Analyst embeds the sample text and reads how long the vectors are. When the test passes, the dialog shows *"Test passed. The model returns {dimensions}-dimension vectors."* You don't enter dimensions yourself. The Test times out after 15 seconds. 5. Select **Save**. As with the LLM endpoint, **Save** stays unavailable until a Test passes for exactly the values in the form. When you save a new Base URL, a new Model or a model with a different vector length, AI Analyst re-indexes your organization's semantic layer through the endpoint. **Search is keyword-only until the re-index finishes.** Saving the same Base URL and Model again doesn't re-index. If you change only the API key, search stays hybrid. If the server starts serving different weights under the same model name, the stored vectors aren't refreshed. ### Preset and custom embedding models AI Analyst has tuned settings for two embedding models. A **Model** value that exactly matches one of these names, including upper and lower case, uses the tuned settings: | Preset | Model names that match | Vector length | |---|---|---| | OpenAI text-embedding-3-small | `text-embedding-3-small` | 1536 | | Qwen3 Embedding 0.6B | `qwen3-embedding-0.6b` or `Qwen/Qwen3-Embedding-0.6B` | 1024 | With the Qwen3 preset, AI Analyst always requests the model as `Qwen/Qwen3-Embedding-0.6B` after you save, even if you entered `qwen3-embedding-0.6b`, so your server must accept that name. The Test sends the name exactly as you typed it. On a Text Embeddings Inference server, the Qwen3 preset also expects the server to report the exact model revision that preset was tuned for. Otherwise AI Analyst refuses its vectors. If a preset model returns vectors of a different length, the Test fails with *"That model returned vectors of a different length than its known settings expect."* and you can't save the endpoint. Any other model is treated as a custom model. It works, but with general default settings that aren't tuned for that model, so meaning-based matches may be less precise. ### Failure behaviour If your Embedding endpoint fails during a search, that search returns keyword-only results. AI Analyst never falls back to Actian Inference for an organization that has its own Embedding endpoint. ### Remove your Embedding endpoint 1. In the **Search** section, select **Remove**. 2. In **Remove the Embedding endpoint?**, confirm with **Remove**. Your organization goes back to the deployment's embeddings, and the semantic layer is re-indexed. Search is keyword-only until that finishes. If the deployment has no embeddings, search stays keyword-only. ## How API keys are handled - **Write-only.** Once saved, a key is never shown again. The page shows only **Saved** or **None** in the **API key** row. - **Encrypted at rest**, the same way as data source credentials. - **Kept only for the same base URL.** When you edit an endpoint and leave **API key** blank, the saved key is kept, as long as the **Base URL** doesn't change. If you change the **Base URL**, the saved key is *not* sent to the new address, and the hint reads: *"The saved key is only sent to the base URL it was saved for. Enter this endpoint's key, or leave blank if it needs none."* ## Network addresses AI Analyst checks each endpoint's address against the deployment's network rules when you select **Test** or **Save**. It checks again every time it connects to the endpoint, so a later DNS change can't redirect traffic to a blocked address. - Link-local and cloud-metadata addresses (such as `169.254.0.0/16` and `fe80::/10`) and cloud-metadata or Kubernetes API hostnames are always refused. - Whether private-network or loopback addresses (for example `10.x.x.x`, `192.168.x.x` or `127.0.0.1`) are allowed depends on how the deployment is configured. On a self-managed deployment, the operator controls this. - If the hostname can't be resolved, the address is refused too. A refused address shows *"This deployment isn't allowed to call that address."* ## Troubleshooting Test errors The dialog shows a fixed message. It never shows the endpoint's status code or response body. | Message | Likely cause | What to do | |---|---|---| | *"The model answered without calling a tool. The Analyst needs a model that supports tool calling."* | The model or your gateway doesn't support tool calling, or it ignored the tool. | Use a model that supports tool calling, or turn on tool calling in your gateway. | | *"The endpoint didn't answer. Check the base URL, key and model, and that this deployment can reach it."* | Any failed request: network error, timeout, wrong or missing key, unknown model name, wrong path (for example a missing or extra `/v1`), or any other error response from the server. | Check the **Base URL** format for this endpoint type, the **API key** and the **Model** name. Make sure the server is reachable from the deployment. | | *"This deployment isn't allowed to call that address."* | The address is blocked by the deployment's network rules, or the hostname doesn't resolve. | See [Network addresses](#network-addresses). On a self-managed deployment, ask your operator. | | *"That model returned vectors of a different length than its known settings expect."* | Embedding endpoint only: a preset model name returned vectors of the wrong length. | Check that the server really serves the model you named. | | *"That capability doesn't apply to this API. Choose one this API can carry."* | The **Capabilities** option isn't one the chosen **API** can send, for example a thinking option on an OpenAI-compatible endpoint. | Choose **Generic**, or an option that matches the **API**. See [Choose Capabilities](#choose-capabilities). | | *"Your plan doesn't include customer-hosted inference."* | Your plan doesn't include Customer-hosted inference, or AI Analyst couldn't confirm that it does. | Check **Settings** → **Usage** if you have Studio access. Otherwise the Inference page tells you whether your plan includes the feature. Contact Actian to add the feature. | | *"The Test failed. Check the endpoint and try again."* | Any other error. | Check the endpoint and try again. | If **Save** fails, the same messages appear as a notification. If AI Analyst can't tell why, the notification reads *"We couldn't save the endpoint. Please try again."* If **Remove** fails, the notification reads *"We couldn't remove the endpoint. Please try again."* !!! note "Plan check" If AI Analyst can't confirm your plan's features, it treats Customer-hosted inference as not included. In that case, the **Add** button may still appear, but **Test** returns *"Your plan doesn't include customer-hosted inference."* Try again later. ## Audit trail Saving and removing endpoints is recorded in the organization's audit log (**Settings** → **Audit**). See [Audit logs](../governance/audit-logs.md). | Action | Recorded details | |---|---| | `org.llm_endpoint.set` | Base URL, model, fast model, capabilities preset, and whether a key is set. The key itself is never recorded. | | `org.llm_endpoint.remove` | That the LLM endpoint was removed. | | `org.embedding_endpoint.set` | Base URL, model, dimensions, preset, and whether a key is set. The key itself is never recorded. | | `org.embedding_endpoint.remove` | That the Embedding endpoint was removed. | ## Related pages - [Members](members.md): grant the **Manage inference** capability. - [Semantic layer overview](../semantic-layer/overview.md): the Models, Metrics and Glossary terms that search works across. - [How AI Analyst handles your data](../governance/how-ai-analyst-handles-your-data.md)