Connecting your own LLM for answer generation
Overview
You can have a selector's chat answers written by a language model in your own cloud account or company gateway. FoxBase sets up the connection on request, one selector at a time. Your provider bills you directly for the model usage.
Only answer generation moves to your model. The other AI functions keep running on FoxBase-managed models:
| Function | What it does | Runs on |
|---|---|---|
| Answer generation | Writes chat answers, runs product searches, fills structured outputs | Your model |
| Search embeddings | Turns products and questions into vectors for semantic search | FoxBase-managed |
| Reranking | Orders search results by relevance | FoxBase-managed |
| Input safety check | Screens user messages before they reach a model | FoxBase-managed |
| AI filter selection | Pre-selects product filters from the user's question | FoxBase-managed |
| Answer evaluation | Scores answers against your test questions | FoxBase-managed |
| Chat analytics | Groups and labels conversations for reporting | FoxBase-managed |
FoxBase-managed models run on Amazon Bedrock in the EU. If your selector uses OpenAI embeddings, those requests go to OpenAI.
Supported providers
FoxBase connects to three kinds of model endpoints:
| Provider | What we connect to | Authentication |
|---|---|---|
| Azure OpenAI / Microsoft Foundry | A model deployment in your Azure OpenAI or Foundry resource | API key; Microsoft Entra ID on request |
| Amazon Bedrock | A model or inference profile in your AWS account and region | Cross-account IAM role (preferred), IAM access key, or Bedrock API key |
| OpenAI-compatible gateway | Your company LLM gateway or a self-hosted endpoint with an OpenAI-compatible Chat Completions API, such as LiteLLM or vLLM | API key or bearer token, plus custom headers if your gateway needs them |
Other providers that our LLM framework Pydantic AI supports are available on request. Examples are Google Vertex AI, the Anthropic API, Mistral and OpenAI.
Model requirements
Your model must support tool calling, and your endpoint must stream responses. While answering one question the model may call product search several times, and the answer is streamed into the chat.
| Requirement | Applies to | Needed | Why |
|---|---|---|---|
| Tool (function) calling | Model and endpoint | Required | Product search, your selector's tools and structured outputs all run as tool calls, up to 3 search rounds per question |
| Streaming responses | Endpoint | Required | Answers appear in the chat as they are written |
| At least 5,000 output tokens per response | Model | Required | Answers are capped at 5,000 tokens |
| Context window of 128,000 tokens or more | Model | Recommended | Search results, product data and chat history make prompts long |
| Image input | Model | Optional | The model sees up to 10 product images per search result |
| Native JSON-schema output | Model and endpoint | Optional | Fewer retries for structured outputs; without it we validate and retry |
| Temperature 0 and seed | Endpoint | Optional | Answers become more reproducible |
| Prompt caching | Endpoint | Optional | Lowers cost and latency on long prompts |
Current mid-size and large models from the major vendors meet these requirements. Examples are Claude Haiku or Sonnet, OpenAI's mini-class models or larger, Gemini Flash or Pro, and Mistral Large. FoxBase's default for new selectors is Claude Haiku 5.5.
Your model must also follow long, nested tool schemas reliably. This is a question of quality, not a feature flag, so we test it with your selector before go-live.
What you need to provide
For every connection, tell us three things:
- the selectors that should use your model
- whether FoxBase may fall back to a FoxBase-managed model when yours is unavailable (see Capacity, cost and operations)
- a technical contact for setup and incidents
Then add the details for your provider:
| What we need | Azure OpenAI / Microsoft Foundry | Amazon Bedrock | OpenAI-compatible gateway |
|---|---|---|---|
| Endpoint and region | Resource endpoint, e.g. https://<resource>.openai.azure.com/openai/v1/, and its deployment type, e.g. Data Zone EU |
AWS region, e.g. eu-central-1 |
Base URL, e.g. https://llm-gateway.example.com/v1, and where the model runs |
| Model | Deployment name and the model behind it | Model ID or inference profile ID, e.g. eu.anthropic.claude-haiku-5-5 |
Model name in your gateway and the model behind it |
| Credentials for FoxBase only | Microsoft Entra ID service principal (preferred) or API key | IAM role that can only invoke your model (preferred), access key or Bedrock API key | API key or bearer token, plus any required headers |
| Network access | Allow FoxBase's IP addresses if public network access is restricted | No change; access is controlled through IAM | Allow FoxBase's IP addresses |
| Preparation | Deploy a model that lists tool calling in Microsoft's model catalog | Enable access to the model in the Bedrock console | Offer the Chat Completions API with tool calls and streaming |
What we commit to:
- We use your credentials only to call your model for the selectors you name.
- We store them encrypted in the EU and never show them in the Workbench. You can revoke them at any time.
- During onboarding you get the exact setup steps, such as the IAM role policies for Bedrock, and the IP addresses to allow.
- Details are in Security, network access and credentials.
Security, network access and credentials
Send credentials only through the secure channel your FoxBase contact sets up, never by email or chat.
- Dedicated credentials. Create a key, IAM role or service principal for FoxBase only. Limit it to calling the one model.
- Storage. FoxBase stores your credentials encrypted. Only the service that calls your model uses them. They are not shown in the Workbench.
- Rotation and revocation. You can revoke access at any time. To rotate a key, send us the new one first, then disable the old one after we confirm the switch.
- Network access. FoxBase calls your endpoint over HTTPS from one fixed public IP address per environment. If your endpoint is behind a firewall or network rules, allowlist the addresses your FoxBase contact gives you.
What your model receives. Each request contains your selector's instructions, the user's messages and chat history, and the product search results. Product images are included if your model accepts images.
What stays with FoxBase. FoxBase still stores conversations for chat history and analytics, as before. The functions listed in the Overview keep running on FoxBase-managed models. How your provider processes and retains data is governed by your own contract with them.
Capacity, cost and operations
Size your model quota for peak chat traffic. One user question can trigger several model calls: one per search round, up to 3, plus the final answer.
- Quota. Set tokens-per-minute and requests-per-minute limits for your busiest hour. FoxBase can share token usage from your current selectors to help you size them. Requests above your limit fail.
- Cost. Your provider bills you directly for model usage. Your FoxBase contact clarifies how this affects your FoxBase plan.
- Content filters. Azure content filters and Bedrock guardrails on your side apply in addition to FoxBase's input safety check. Strict settings can block normal product questions, so we test with real questions before go-live.
- Model changes. Tell FoxBase before you point the deployment to another model or version, so we can re-test. Your provider's model retirements apply to your deployment.
- Monitoring. FoxBase sees errors and response times of the connection and contacts your technical contact if calls keep failing.
You choose what happens when your model is unavailable:
| Option | What users see | Where requests go |
|---|---|---|
| No fallback (default) | An error message until your model responds again | Only your provider |
| Fallback to a FoxBase-managed model | Answers keep working | Your provider, and FoxBase's Amazon Bedrock in the EU while yours is down |
Setup process
Setup takes seven steps, and your model goes live only after you approve the test answers.
- You: Ask your FoxBase contact for the connection and name the selectors.
- FoxBase: Confirms that your provider and model meet the requirements. Sends you the IP addresses to allowlist and, for Bedrock, the AWS account ID and external ID.
- You: Set up the deployment or model access, the dedicated credentials and any firewall rules.
- You: Send the details from "What you need to provide" through the secure channel.
- FoxBase: Connects your model in a test environment and runs test conversations with your selector's questions, tools and filters.
- You: Review the test answers. FoxBase adjusts settings if needed.
- FoxBase: Activates your model for the agreed selectors and confirms the switch.
Limitations and FAQ
Can search, embeddings or evaluation also run on our provider? Not as part of this setup. Each of these functions uses its own model. Changing the embedding model also means re-processing all your product data. Talk to your FoxBase contact if you need this.
Can different selectors use different models? Yes. The connection is set per selector. Selectors without one keep using FoxBase-managed models.
Can we switch back to FoxBase-managed models? Yes. FoxBase switches the selector back on request, and existing chat histories are kept.
Which region should our model run in? Any region your provider offers. For EU data residency, choose an EU region or an EU inference profile, such as Bedrock's eu. profiles.