Usage of System Defaults
When system defaults are set, MindsDB can automatically use the configured models across the platform for various components such as:- Agents that can answer questions over the connected data and are powered by a default large language model (LLM).
- Knowledge Bases that can store and search both structured and unstructured data, and use a default embedding model for embedding the content and a default reranking model for reranking the search results. Additionally, knowledge bases use a default model for evaluating performance with the EVALUATE KNOWLEDGE_BASE command.
- Custom functions such as LLM() and TO_MARKDOWN() that rely on the default LLM for text generation and formatting.
Available System Defaults
MindsDB supports the following system defaults:| System Default | Used By | Description |
|---|---|---|
| Default LLM | Agents, EVALUATE, KNOWLEDGE_BASE, LLM(), TO_MARKDOWN() | Used as an underlying LLM for reasoning, conversation, and text generation and formatting. |
| Default Embedding Model | Knowledge Bases | Converts inserted content and user questions into embeddings for semantic search. |
| Default Reranking Model | Knowledge Bases | Reranks search results to improve retrieval accuracy. |
Supported Model Providers
Different components in MindsDB support different sets of model providers. Knowledge Bases Supported providers for embedding models:- Azure OpenAI
- Bedrock
- OpenAI (and OpenAI-compatible model providers)
- Snowflake Cortex AI
- Azure OpenAI
- Bedrock
- OpenAI (and OpenAI-compatible model providers)
- Snowflake Cortex AI
- Azure OpenAI
- Bedrock
- OpenAI (and OpenAI-compatible model providers)
- Snowflake Cortex AI
- Bedrock
- Ollama
- OpenAI (and OpenAI-compatible model providers)
- Ollama
- OpenAI (and OpenAI-compatible model providers)
- Azure OpenAI
- OpenAI (and OpenAI-compatible model providers)
How to Configure System Defaults
You can configure system defaults using either the MindsDB UI or the configuration file, depending on your setup preferences. The configuration variables include a provider name, a model name, and – if available – base URL, API key, and API version. Option 1: Configure via MindsDB UI- Open the MindsDB UI.
- Navigate to Settings → Models.
- Define the models for each of the system defaults as follows: a. Under Provider, select the model provider from the dropdown. b. Under Model, define the model name that is available with the selected model provider. c. Under Base URL, define the base URL of the model provider, if available. d. Under API key, provide the API key, if available. e. Under API version, define the API version, if available. 4.Click the Test & Save button to validate and save the configuration.
Note that after changing the default model, the existing objects are not updated with the new default model. All objects being created going forward will use the updated default models.