Skip to main content

Atoti Intelligence Essentials

This is part of the Atoti Intelligence Essentials offer.
Providing context about your cubes improves Visualize This responses: the more the LLM knows about the business meaning of cubes, dimensions, hierarchies, levels, and measures, the more relevant the visualizations it produces. Configuration is optional but recommended.

Prerequisites

Visualize This must be enabled before adding configuration. See Set up Visualize This in Java or Set up Visualize This in Python for setup instructions.

Atoti Java SDK

Add Visualize This configuration to the application configuration file. Add the following to application.yaml:

Configuration parameters

The following table describes each configuration parameter:

Alternative: XMLA_DESCRIPTION property

Descriptions for dimensions, hierarchies, and levels can also be sourced from the XMLA_DESCRIPTION property set directly on the OLAP element schema definition. When this property is present on an element, Visualize This reads it as the element’s description. This is useful when descriptions are already defined in the cube schema, and you want to avoid duplicating them in the application configuration file. If both XMLA_DESCRIPTION and the application configuration file provide a description for the same element, the two values are concatenated.
The XMLA_DESCRIPTION property applies to dimensions, hierarchies, levels, and measures only. Cubes and measure folders must be described through the application configuration file.

Partial configuration

Configuration does not require descriptions for all elements. Provide descriptions only for elements that need additional context.

How to disable the chat endpoint

In a deployment with several applications, only one of them should serve chat: the main application that users send their prompts to. Disable the chat endpoint on every other application, and connect them to the main application over MCP. See How to configure chat across a deployment. An application can serve Atoti Intelligence without serving chat. Setting atoti.ai.chat.enabled to false, available from Atoti 6.1.25, registers no chat endpoint:
The chat endpoints are then absent, and every call to them answers 404 Not Found. The Atoti UI reports chat as absent, and shows no chat panel. The activeviam/ai namespace stays advertised on the /versions endpoint as long as Auto-Explain is enabled, since both features share it. Every other Atoti Intelligence feature keeps working, Auto-Explain and the MCP Server included. The setting defaults to true.
Turning chat off differs from configuring no LLM. An application with no LLM still registers the chat endpoints, which refuse each call with 404 Not Found until an LLM is configured. Chat there is absent only for as long as no LLM is.
In the Atoti Python SDK, set AiConfig.chat_enabled to False:
A session started that way serves no chat, and Session.chat reports chat as absent.

Dynamic tool discovery

Visualize This can send the LLM every available tool on each request. Alternatively, it can send only the tools that match the current request. Dynamic tool discovery is the second mode: the model calls a tool search tool that queries a keyword index and receives only the matching tools. This reduces prompt token usage and improves tool selection. Atoti enables dynamic tool discovery by default.
Dynamic tool discovery applies to both SDKs, and both can turn it off.

How to opt out

Turning dynamic tool discovery off sends the whole tool set to the model on every request instead. This restores the behavior Atoti used before dynamic tool discovery existed. A small tool set, where search adds no benefit, is one reason to turn it off. Debugging which tools the model can see is another. In the Atoti Java SDK, set spring.ai.chat.client.tool-search-advisor.enabled to false:
In the Atoti Python SDK, set AiConfig.dynamic_tool_discovery to False:

Streaming the answer

Visualize This can send its answer in one piece, once the run ends, or stream it as the model writes it. Streaming, available from Atoti 6.1.26, is off by default: turn it on and the answer appears in Atoti UI as it is produced, instead of after a pause. The answer is delivered as AG-UI TEXT_MESSAGE_CHUNK events, one per delta, rather than the single TEXT_MESSAGE_CONTENT event a non-streamed answer uses. Everything else about the run is unchanged: the tool-call events, the run and step lifecycle, and the conversation memory are the same either way. In the Atoti Java SDK, set atoti.ai.streaming-enabled to true:
In the Atoti Python SDK, set AiConfig.streaming to True:
A single request can override the configured default: an AG-UI run whose forwardedProps carry a streaming boolean is answered that way regardless of the property.

Atoti UI support

The Atoti UI AI extension shipped with Atoti 6.1.26 does not accumulate the deltas of a streamed answer: it renders each one in place of the last, so the answer bubble ends up holding only the final delta. Until a version of the extension that appends them ships, keep streaming off for applications served to Atoti UI, and turn it on only for clients that handle TEXT_MESSAGE_CHUNK themselves.

Reasoning traces

A streamed answer can also carry the model’s reasoning, delivered as AG-UI REASONING_* events ahead of the answer itself. This is off by default, and only honored while streaming is on. In the Atoti Java SDK, set atoti.ai.thinking-enabled to true; in the Atoti Python SDK, set AiConfig.thinking to True. Whether a reasoning trace exists at all is up to the LLM provider:
Reasoning traces are the model’s own account of its work. Treat them as explanatory rather than authoritative, and consider whether they should be shown to end users at all before turning them on.

Models that cannot stream

A model whose client has no streaming support answers in one piece instead of failing the run: Atoti logs a warning the first time it happens and falls back to a single message. Turn atoti.ai.streaming-enabled off to stop asking for it.

Atoti Python SDK

The chat is available on the session through Session.chat. Its system_prompt is the whole system prompt sent to the LLM, Atoti’s built-in prompt by default. Assigning it replaces that prompt, so append to the current value to give the LLM extra context about your cubes without losing the built-in instructions. Reading it queries the server; assigning it takes effect on the next chat run and requires the ROLE_ADMIN role.
The system prompt is global: it applies to every request rather than to a specific cube (the assistant infers which cube a request targets). Use it for overall guidance.To give the assistant more information about a specific cube, set descriptions on its measures and hierarchies — for example cube.measures["Revenue.SUM"].description and cube.hierarchies["Product"].description. The assistant reads these descriptions through its tools. The Java SDK additionally accepts cube, dimension, level, and measure-folder descriptions through application.yaml.

How to stream the answer

Streaming is off by default. Set AiConfig.streaming to True to have the answer appear as the model writes it:
AiConfig.thinking adds the model’s reasoning trace to a streamed answer.

How to serve no chat

Set AiConfig.chat_enabled to False to register no chat endpoint, as described in How to disable the chat endpoint.

How to opt out of dynamic tool discovery

Dynamic tool discovery is on by default. Turn it off with AiConfig.dynamic_tool_discovery, as described in How to opt out.