Skip to content

Commit 83490fd

Browse files
leemthomponaemono
authored andcommitted
[Agent Builder] Add page about models (elastic#3338)
closes elastic/search-team#10745 closes elastic/docs-content-internal#364
1 parent 783f837 commit 83490fd

File tree

4 files changed

+99
-9
lines changed

4 files changed

+99
-9
lines changed

solutions/search/agent-builder/get-started.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ Learn more in [Agent Chat](chat.md).
8888

8989
::::
9090

91+
::::{step} Configure model (optional)
92+
93+
By default, {{agent-builder}} uses the Elastic Managed LLM. To use a different model, refer to [model selection and configuration](models.md).
94+
95+
::::
96+
9197
::::{step} Begin building agents and tools
9298

9399
Once you've tested the default **Elastic AI Agent** with the [built-in Elastic tools](tools.md), you can begin [building your own agents](agent-builder-agents.md#create-a-new-agent) with custom instructions and [creating your own tools](tools.md#create-custom-tools) to assign them.

solutions/search/agent-builder/limitations-known-issues.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,11 @@ These pages are currently hidden from the docs TOC and have `noindexed` meta hea
2020

2121
{{agent-builder}} must be enabled for non-serverless deployments {applies_to}`stack: preview 9.2`. Refer to [Get started](get-started.md#enable-agent-builder) for instructions.
2222

23-
### Model selection
24-
25-
Initially, {{agent-builder}} only supports working with the [Elastic Managed LLM](kibana://reference/connectors-kibana/elastic-managed-llm.md) running on the [Elastic Inference Service](/explore-analyze/elastic-inference/eis.md) {applies_to}`stack: preview 9.2`.
26-
27-
Learn about [pricing](https://www.elastic.co/pricing/serverless-search) for the Elastic Managed LLM.
28-
2923
## Known issues
3024

3125
### Incompatible LLMs
3226

33-
While Elastic offers LLM [connectors](kibana://reference/connectors-kibana.md) for many different vendors and models, not all LLMs are robust enough to be used with {{agent-builder}}. We recommend using the [Elastic Managed LLM](kibana://reference/connectors-kibana/elastic-managed-llm.md) (the default).
27+
While Elastic offers LLM [connectors](kibana://reference/connectors-kibana.md) for many different vendors and models, not all LLMs are robust enough to be used with {{agent-builder}}. We recommend using the [Elastic Managed LLM](kibana://reference/connectors-kibana/elastic-managed-llm.md) (the default). Learn more in [](models.md).
3428

3529
The following errors suggest your selected model may not be compatible with {{agent-builder}}:
3630

@@ -69,4 +63,4 @@ This results in parsing errors like this:
6963
]
7064
```
7165

72-
66+

solutions/search/agent-builder/models.md

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,87 @@ These pages are currently hidden from the docs TOC and have `noindexed` meta hea
1212
**Go to the docs [landing page](/solutions/search/elastic-agent-builder.md).**
1313
:::
1414

15-
# Using different models in {{agent-builder}}
15+
# Using different models in {{agent-builder}}
16+
17+
{{agent-builder}} uses large language models (LLMs) to power agent reasoning and decision-making. By default, agents use the Elastic Managed LLM, but you can configure other models through Kibana connectors.
18+
19+
## Default model configuration
20+
21+
By default, {{agent-builder}} uses the Elastic Managed LLM connector running on the [Elastic Inference Service](/explore-analyze/elastic-inference/eis.md) {applies_to}`serverless: preview` {applies_to}`ess: preview 9.2`.
22+
23+
This managed service requires zero setup and no additional API key management.
24+
25+
Learn more about the [Elastic Managed LLM connector](kibana://reference/connectors-kibana/elastic-managed-llm.md) and [pricing](https://www.elastic.co/pricing).
26+
27+
## Change the default model
28+
29+
By default, {{agent-builder}} uses the Elastic Managed LLM. To use a different model, select a configured connector and set it as the default.
30+
31+
### Use a pre-configured connector
32+
33+
1. Search for **GenAI Settings** in the global search field
34+
2. Select your preferred connector from the **Default AI Connector** dropdown
35+
3. Save your changes
36+
37+
### Create a new connector in the UI
38+
39+
1. Find connectors under **Alerts and Insights / Connectors** in the [global search bar](/explore-analyze/find-and-organize/find-apps-and-objects.md)
40+
2. Select **Create Connector** and select your model provider
41+
3. Configure the connector with your API credentials and preferred model
42+
4. Search for **GenAI Settings** in the global search field
43+
5. Select your new connector from the **Default AI Connector** dropdown under **Custom connectors**
44+
6. Save your changes
45+
46+
For detailed instructions on creating connectors, refer to [Connectors](https://www.elastic.co/docs/deploy-manage/manage-connectors).
47+
48+
Learn more about [preconfigured connectors](https://www.elastic.co/docs/reference/kibana/connectors-kibana/pre-configured-connectors).
49+
50+
#### Connect a local LLM
51+
52+
You can connect a locally hosted LLM to Elastic using the OpenAI connector. This requires your local LLM to be compatible with the OpenAI API format.
53+
54+
Refer to the [OpenAI connector documentation](kibana://reference/connectors-kibana/openai-action-type.md) for detailed setup instructions.
55+
56+
## Connectors API
57+
58+
For programmatic access to connector management, refer to the [Connectors API documentation]({{kib-serverless-apis}}group/endpoint-connectors).
59+
60+
## Recommended models
61+
62+
{{agent-builder}} requires models with strong reasoning and tool-calling capabilities. State-of-the-art models perform significantly better than smaller or older models.
63+
64+
The following models are known to work well with {{agent-builder}}:
65+
66+
- **OpenAI**: GPT-4.1, GPT-4o
67+
- **Anthropic**: Claude Sonnet 4.5, Claude Sonnet 4, Claude Sonnet 3.7
68+
- **Google**: Gemini 2.5 Pro
69+
70+
### Why model quality matters
71+
72+
Agent Builder relies on advanced LLM capabilities including:
73+
74+
- **Function calling**: Models must accurately select appropriate tools and construct valid parameters from natural language requests
75+
- **Multi-step reasoning**: Agents need to plan, execute, and adapt based on tool results across multiple iterations
76+
- **Structured output**: Models must produce properly formatted responses that the agent framework can parse
77+
78+
Smaller or less capable models may produce errors like:
79+
80+
```console-response
81+
Error: Invalid function call syntax
82+
```
83+
84+
```console-response
85+
Error executing agent: No tool calls found in the response.
86+
```
87+
88+
While any chat-completion-compatible connector can technically be configured, we strongly recommend using state-of-the-art models for reliable agent performance.
89+
90+
:::{note}
91+
GPT-4o-mini and similar smaller models are not recommended for {{agent-builder}} as they lack the necessary capabilities for reliable agent workflows.
92+
:::
93+
94+
## Related resources
95+
96+
- [Limitations and known issues](limitations-known-issues.md): Current limitations around model selection
97+
- [Get started](get-started.md): Initial setup and configuration
98+
- [Connectors](/deploy-manage/manage-connectors.md): Detailed connector configuration guide

solutions/search/elastic-agent-builder.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ To get started you need an Elastic deployment and you must enable the feature.
5454

5555
[**Get started with {{agent-builder}}**](agent-builder/get-started.md)
5656

57+
## Model selection
58+
59+
By default, agents use the Elastic Managed LLM, but you can configure other model providers using connectors, including local LLMs deployed on your infrastructure.
60+
61+
[**Learn more about model selection**](agent-builder/models.md)
62+
63+
5764
## Programmatic interfaces
5865

5966
{{agent-builder}} provides APIs and LLM integration options for programmatic access and automation.

0 commit comments

Comments
 (0)