Skip to main content

Atlas AI

Atlas AI is a page of the environment, under Overview in the menu. You write a question in your own words and Atlas AI writes an answer. It asks a language model your installation is connected to, and it draws the answer from two places: the environment you are in, read with your access, and this documentation. Of the documentation it reads the reference, the task guides, and the pages under Operate and Concepts. Two of those pages, Add an environment and Install G8 on OKD or OpenShift, carry the name of the gateway's software in a message of the console and in an address. Atlas AI gives such a message or address as the page writes it and does not use the name in its own words.

Who may open it​

Atlas AI needs the view permission of Atlas AI in the environment (atlas.view). The three built-in environment roles hold it, the Viewer included, and a custom role can carry it. Without it the page is absent from the menu, and opening it by its address shows a page that names your role. A service account has no conversations.

Atlas AI comes with a G8 Enterprise license that includes it. Under any other license the page is locked for everyone and shows this title: Atlas AI is not part of this license. License shows where the installed license says whether it is included.

What has to be connected​

A language model, named in the server's configuration. Connect a model to Atlas AI shows how. Until one is named the page says No model is connected. and takes no question. Conversations from before stay readable.

Ask a question​

Write the question under Message to Atlas AI and select Send, or press Enter. Shift and Enter start a new line. On the first open the page offers three questions to start from. For a person who may change routes, the third asks for a change to one of the routes of the environment.

While Atlas AI works, the page shows what it has read so far and the answer as it is written. A guide, an Operate or concept page, or a reference page it read stands under Read, and the answer ends with its sources. A source opens that guide or page, or the reference page of that plugin or object kind, on the documentation site in a new tab.

A time in a question, such as "this morning" or "the last two hours", is read in the time zone of your browser.

Atlas AI answers in the language of your question and keeps technical terms in English. It names plugins, fields and values as the reference writes them.

A next question in the same conversation carries what was asked and answered before it. New chat starts a conversation that carries nothing over.

What it reads​

Atlas AI reads the environment with your access. Each reading is a request the G8 server makes in your name, with the permissions your role holds in this environment. What your role cannot open, Atlas AI cannot read for you, and it says so in its answer. The message box says it in these words: Atlas AI answers about your APIs and this gateway, with your access.

What it readsPermission it needsWhat reaches the answer
Routes, services, upstreams, consumers, consumer groups, plugin configs and global rulesThe view permission of that kindThe object as the gateway holds it now, with every secret masked. The mask stays on when your own role shows secrets. With a route, Atlas AI also reads the plugins that the route's plugin config and its service add to it, if your role may view those kinds. With a plugin config, a service or an upstream, it also reads which objects use it, among the kinds your role may view.
Request recordsTraffic Explorer (traffic.view)The newest 50 records of a window: when the request began, method, path, status, duration, route, service, consumer, client address and upstream node.
Request records counted by one fieldTraffic Explorer (traffic.view)The ten most frequent values of the field with their count and share, and on request the counts of the window before.
Request counts and response timesAnalytics (analytics.view)The gateway's own counters for a window, for the environment or for one route, service, upstream or consumer.
Changes to an object and to what it is bound toAudit log (audit.view)Who changed what and when, with the settings that changed. A secret that changed is named and never shown.
Changes to every object of the gatewayAudit log (audit.view) and the view permission of each kindEvery change of a window in one reading, up to 200, the newest first: who made it, to which object and when, with the settings that changed. Changes to alert rules, roles and the settings of G8 itself are not in it.
Gateway nodesAnalytics (analytics.view)The gateway's own nodes in a window: whether each is up now, how many requests it handled, and when a node restarted, joined or left.
Alert rulesAlerts (alerts.view)The rules as they are defined now: what each watches, its condition, whether it is switched on or muted, whether it fires, and the names of the channels it notifies. The system alerts are listed with which of them are switched on.
Alert episodesAlerts (alerts.view)The newest 25 episodes: which rule fired, on what, and when.
The G8 reference, the task guides, and the pages under Operate and ConceptsNone beyond Atlas AI itselfWhat a plugin or an object kind does, its fields, its worked examples, the steps of a guide, and what a page says about using and running G8 or about how it works. Of a reference page it also reads what the page says to know: the cautions the form shows and the page's advice. Of each field it reads what the form says of it and the choice the field belongs to.

The built-in Viewer and Editor roles hold the view permission of the gateway objects and none of the permissions the rows below it name. With one of these roles you can ask about your routes and about how to do something. A question about request records, counts, gateway nodes, changes or alerts needs the Environment administrator role, or a custom role that carries the permission.

A person who may change a route, a service, an upstream, a consumer, a global rule or a plugin config, or create an alert rule, reads this on the first open of the page: Atlas AI reads this environment with your access. It answers how-to questions from the G8 reference. It can prepare a change for you to apply.

Anyone else reads this: Atlas AI reads this environment with your access. It answers how-to questions from the G8 reference. It changes nothing.

What the page draws with an answer​

Numbers and changes on the page come from what the G8 server read, not from what the model wrote.

  • Counted request records. A table stands above the words of the answer, one for each field Atlas AI counted by. It names the window, the filters and the total. A route, service, upstream or consumer in a filter is shown by its name, and where two of them share a name the id stands beside it. What Atlas AI read twice within a minute is drawn once, with the later count. Open these records in Traffic Explorer opens Traffic Explorer on the same window with the same filters.
  • Request counts. A card stands above the words when Atlas AI reads the gateway's counters for a window. It shows the total and the count of each status class. Under them it draws two strips over time: all requests, and the 4xx and 5xx answers on a scale of their own, so that a burst of errors shows beside thousands of good answers. A step that is still running is drawn paler, and a step the counters hold nothing for stays empty. When the window holds 5xx answers and the counters tell who answered them, the card says so. Where the counters hold nothing for the whole window, the card says that and draws no zero. Where Prometheus could only estimate the counts, the card says that they are estimates, as Analytics does. Open this range in Analytics on the card opens Analytics on the same window.
  • Alert rules. A card lists the alert rules when Atlas AI reads them: the rules people wrote and the system alerts that are switched on. It shows up to ten: those that fire come first, then those whose condition holds, those that could not be measured or have no data, those not judged yet, those that are fine, and last those switched off. Each row shows the scope, the condition and the state as the Alerts page words them, and up to five channels by name. A rule that fires shows since when. A rule whose state is older than the last judging shows the time of its own. The card says how many rules there are, how many fire and when they were last judged. Open Alerts opens Alerts.
  • Gateway nodes. A card lists the gateway's own nodes when Atlas AI reads them: up to ten, those not reachable first, then those that restarted, those gone, and the others. Each row says whether the node was up at the moment of the reading, the requests it handled in the window and its share of them. Where no node counted a request the card says so and shows no numbers, and where the counts are estimates it says that. Under a node's name stand its restarts, when it joined, why it is not reachable, and when a node that is gone was last seen. Nodes that left in the window are listed under them. The card says how many nodes there are and how many were up, not reachable or gone, and the foot under the nodes names the moment of the reading. A window that still ran is written up to that moment. Open this range in Analytics on the card opens Analytics on the same window.
  • Changes. A card lists up to ten changes of one object and of what it is bound to, the newest first. Each shows when it was made, who made it, and up to five settings that changed. View in audit log opens that event in the audit log. When you ask who changed what in the whole environment, Atlas AI answers in words and the page draws no card.
  • Links under the answer. Open these records in Traffic Explorer opens the last list of records Atlas AI read that no table above already opens. Open this range in Analytics opens the window whose response times it read, unless a card above already opens that window for the same object. The cards of request counts and of gateway nodes carry that link themselves.

A table among the words of the answer, in a box without a title, is written by the model. It sets things side by side in words, and no cell of it is a number the server read.

A change it prepares​

Ask for a change in your own words, for example a limit on a route or one more node on an upstream. Atlas AI reads the object, prepares the change and has the gateway check the result. It writes nothing. The change stands on a card under the answer, titled Proposed change, and nothing is written until you select Apply.

The change holds what you asked for. When the reference of a plugin it adds says that a field is to be set and names the value, Atlas AI sets that field as well. The status a refused request gets under a limit is such a field. The answer says that it was set and what the gateway does without it, and the card shows it like any other line. Ask for another value, or for none, if you want it otherwise.

Atlas AI prepares a change to one route, service, upstream, consumer, global rule or plugin config, or a new one of these, and a new alert rule. A plugin you ask for on one route goes on that route, also when the route uses a service or a plugin config. When that service or plugin config already carries the same plugin, the gateway uses the route's own copy whole in place of the shared one. When a change makes a route start to carry such a plugin, the card warns that the shared one will no longer apply to the route. The warning links the service or plugin config. It appears for a route that stays on that service or plugin config. It does not appear when the same change moves the route to another one or takes it off its plugin config. When the route's new copy is switched off, the warning says that no such plugin will run on the route. The card shows the route's copy and not the shared one, so open that link before you apply and check that the route's copy holds every setting the route still needs. The card does not warn for a new route, or when the shared copy is switched off. It does not warn either when your role cannot view the route's plugin config or service. A plugin config your role cannot view also hides a copy on the service, since the card cannot tell which of the two is in force. A change to a plugin config reaches every route that uses it and does not carry that plugin itself. A change to a global rule reaches every request of the environment's gateway. Atlas AI prepares either when you ask for that object or for that reach. With a change to a plugin config, a service or an upstream it is given the objects that use it and is asked to name them to you. The card names up to three of them above the Apply button and counts the rest. It names what uses the object directly, so for an upstream behind a service it names the service and not the routes of that service. It says which kinds your role cannot view, since it cannot count those. On a change to a global rule the card says that the rule runs on every request in the environment. It deletes nothing, and it does not change an alert rule that is there. It prepares a change only for a role that can make it. That is the manage permission of the kind for a gateway object, which the built-in Editor role holds, and Alerts (alerts.manage) for an alert rule.

The card shows the change against the object as it is when you look, with one line for each setting that is added, changed or removed. A card that waits keeps its object as it first read it. When the object changed since, the write is refused and the card shows the change against the object as it is now. What a route shares is read again whenever the page reads the conversation again: after you apply a change or send a message, and when an answer ends. The warning therefore follows a change you applied to that plugin config or service a moment before. The objects that use a plugin config, a service or an upstream are named as the card first read them. A value the object already holds at a place its form masks is shown as the mask. A secret the change would write is shown as it will be written, so that you can check it before you apply. The one case in which the card masks it too is a change that also removes an earlier element of a list that holds it. When you apply, the console writes the object through its own route with the version it showed you. The audit log records the write under your name, with a mark that it came from Atlas AI. A role that can open the audit log finds View in audit log on the card, which opens that event.

  • The object changed after the change was prepared. The card says so and shows the change against the object as it is now.
  • The change no longer fits the object. The card offers nothing to apply and says Ask Atlas AI to prepare it again.
  • The object is gone. The card offers nothing to apply.
  • The gateway refuses the write. The card says Not applied. The gateway refused the change. with the reason the server gave.
  • Your role cannot make the change, or the license has expired. The card offers nothing to apply.

When it prepares a change, Atlas AI is refused one that would drop a secret the object holds at that moment. A change can set a secret, and the card shows the value it would write. Atlas AI is told to set one only when you wrote the value into the conversation, and nothing in G8 checks that it did. Read the value on the card, and do not apply one you did not give. A value you wrote has reached the model and stays in the conversation, so enter a secret in the object's own form when you can.

For an alert rule, name the channels it should notify as they are named under Alerts. Atlas AI learns the names and kinds of the channels and nothing about where they send. An environment without a channel gets no rule. The rule starts enabled when you apply it.

What it does not do​

  • It changes nothing itself. Its readings create, edit and delete nothing and start no export, and a change it prepares is written only when you apply it.
  • It does not read the headers, the body or the query string of a request record.
  • It does not read another environment.
  • It reads no secret. A value the gateway keeps as a secret is masked before it reaches the model.

It answers questions tied to an API that works through the gateway and declines the rest. It asks for no password, key or token. Atlas AI can repeat in its answer a secret you write into the conversation, and the conversation keeps your message as you wrote it. Write a secret there only when you want Atlas AI to set it.

Conversations are yours​

The list on the left holds your conversations in this environment. Only you list, read, continue and delete them. Nobody else can open one, a platform administrator included.

Hide conversations folds the list into a narrow rail, where New chat stays, and Show conversations brings it back. The browser remembers which of the two you chose.

The audit log records that a conversation was started and that it was deleted, under the actions atlas_conversation.started and atlas_conversation.deleted. Neither row carries a word of what was asked or answered. A single message leaves no row.

To delete a conversation, open the menu beside it and select Delete conversation. The deletion removes everything asked and answered in it and cannot be undone.

One answer at a time​

  • A conversation takes a new question once the answer before it has ended.
  • Atlas AI answers one person in two conversations at once. A third question waits: Atlas AI is already answering you in two conversations.
  • An answer that is not finished after five minutes is stopped. What was written until then stays in the conversation.

When an answer fails​

The page says why under the answer.

The page saysWhat happened
The answer took too long.The model wrote for five minutes without finishing.
The answer was interrupted.The G8 server that was writing the answer stopped.
The answer stopped before its end.The model stopped before the end, asked to read again after it was told it had no reads left, or the answer grew longer than Atlas AI keeps.
The model answered without a word.The model ended its answer without writing anything, or wrote nothing and asked to read again after it had no reads left.
The model did not accept this installation's API key.The model server asked for a key, or refused the one in the server's configuration.
The model server refused the request.The model server answered the request with an error.
The model could not be reached.The model server did not answer at its address, or its certificate was not trusted.

After the first four, Ask again sends the same question again. The last three are for whoever runs the installation: A platform administrator can test the connection under Help & about.

After the license has expired​

Conversations can be read and nothing else: Atlas AI takes no question and a conversation cannot be deleted. The page says so in place of the message box: Atlas AI answers no one until it is renewed. Your conversations can still be read; they can be deleted again after the renewal.

G8 v0.11.55