Skip to main content

Connect a model to Atlas AI

Atlas AI asks one language model for the whole installation. You run the model, on your own servers or at a provider, and tell the G8 server where it is. Every environment uses the same model, and until one is named Atlas AI answers no one.

What the model server has to offer​

  • An OpenAI-compatible API: Atlas AI sends its requests to /chat/completions under the address you give.
  • Tool calls. Atlas AI reads the G8 reference through tools the model asks for, so a model or a server without them cannot be used.
  • An answer sent as a stream.

G8 reaches the model server from the G8 server, never from a browser. The model server needs no route to the gateway or to the people who use the console.

Name the model​

The model is named in the server's configuration and nowhere else. No page of the console changes it, and a change takes effect at the next start of the server.

SettingWhat it holds
G8_ATLAS_MODEL_URLOptionalThe base address of the API.
G8_ATLAS_MODEL_NAMEOptionalThe name the model server knows the model by.
G8_ATLAS_MODEL_KEYOptionalThe key of the model server, if it asks for one.
G8_ATLAS_MODEL_CA_FILEOptionalThe CA certificates of a model server whose certificate your own authority signed.

Server configuration describes each one. A malformed value stops the start, and the error names the setting. A model server that is down does not stop the start.

On OKD and OpenShift the chart sets them from its values: the address and the name under atlas.model, the key from the Secret named in existingSecret, and the CA certificates when ca is on. The install notes of the chart print the keys that Secret holds.

With Docker Compose the settings go under environment of the server in the compose file. A CA file is mounted into the container read-only, and G8_ATLAS_MODEL_CA_FILEOptional names its path inside the container.

Check the connection​

A Platform administrator sees the Atlas AI model card on Help & about, under a license that includes Atlas AI. It needs the view permission of the model (atlas_model.view). The card shows the address, the name, whether a key is set and the CA certificates. It never shows the key.

Select Test connection. The server asks the model for one short answer with a tool on offer, and the card says what came back. The test takes nothing from the page: it tests the model the configuration names. It leaves a row in the platform audit log.

After the license has expired the test is not run, and the button says so: The license has expired. The connection can be tested after the renewal.

The card saysWhat to do
The connection works.Nothing. Atlas AI can ask this model.
Nothing answers at llm.internal:8000.Check the address and the port, and that the model server runs.
The host name llm.internal could not be found.Check the host name in the address.
llm.internal:8000 did not answer within 20 seconds. A model that is still loading can cause this; test again.Test again once the model has loaded.
The certificate of llm.internal:8000 is not signed by an authority this installation trusts. Its CA certificates go in the server's configuration.Give the server the CA certificates that signed the model server's certificate.
llm.internal:8000 asks for an API key and none is configured.Set the key in the server's configuration.
llm.internal:8000 refused the API key.Replace the key with one the model server knows.
llm.internal:8000 has no model named your-model.Use one of the names the card lists after it.
your-model answered, but the server refused a request that carries a tool. Atlas AI needs tool calls.Choose a model that makes tool calls, or turn them on in the model server.
llm.internal:8000 does not answer like an OpenAI-compatible chat endpoint.Check that the address ends where the model server's OpenAI-compatible API begins.

After a change to the configuration, restart the server and test again.

What is sent to the model​

The card says it in these words: Atlas AI sends this model the questions people ask and what it reads to answer them, with secret fields masked. Request and response bodies and headers are never sent.

  • The questions people write, and the answers before them in the same conversation.
  • What Atlas AI reads to answer, with the access of the person who asked. That is the objects of the environment's gateway, request records and their counts, the gateway's counters and its nodes, the changes made to an object, the alert rules and the alert episodes. Atlas AI lists each with what it carries.
  • The reference, the task guides and the pages under Operate and Concepts of this documentation, built into G8, which hold nothing of your installation.
  • The time zone of the browser and the time of the question, so that the model reads "today at 10:00" as the person means it.
  • No secret. A value the gateway keeps as a secret is masked before a tool hands anything to the model, whoever asks.
  • No request or response body, no header and no query string of a request record. A path, a consumer name or a client address in a record does reach the model.

The key of the model server goes to the address you named and to no other. It appears in no answer of the API, no log line and no audit row.

When the G8 server runs behind an outgoing proxy, a model address written with plain http passes that proxy with its key readable. Write the address with https, or keep the model server off the proxy's path.

G8 v0.11.55