Documentation / Chat
Artifacts
The tables, key figures, charts and record sheets shown in the chat are loaded by your browser: their data does not go through the model.
The principle
An artifact is an interactive rendering shown in the conversation: a result table, key figures, a chart, a record sheet.
When the agent wants to show you data, it does not read it itself. It calls a display tool with a SQL query, and this is what happens:
- OpenDB checks the query and only returns a description to the model: the column names and the number of rows.
- Your browser asks OpenDB for the data directly.
- OpenDB checks the query again with your privileges, runs it read-only and sends the rows to your browser.
The rows shown are therefore never sent to the AI provider. They do not cost tokens either.
Note This protection applies to artifacts. When the agent needs to read values in order to reason, it uses
ReadQuery, and those rows are sent to the model. For full protection, use a local model or an anonymized clone.
Result table
Shown by ShowQueryResults.
- Sort by column, with pagination.
- CSV export, up to 10,000 rows, as a download or into the project's exports folder.
Key figures
Shown by ShowKpis. Up to six cards: a number, an amount, a percentage or a duration.
One failing card does not prevent the others from showing. For an amount, the currency is always stated: the agent never assumes it.
Chart
Shown by ShowChart.
- Bars, lines, areas or pie.
- Stackable series.
- 500 points at most.
- A button downloads it as a PNG image, as it is shown, with its legend.
Table profile
Shown by ProfileTable, on a sample of 10,000 rows at most. For each column:
- the share of
NULLvalues; - the number of distinct values;
- the minimum and the maximum;
- the length of text values;
- the five most frequent values.
Record sheet
Shown by ShowRecord. Every column of the row, with:
- outgoing references, clickable: you follow a foreign key to the row it points to;
- incoming references: the number of rows in other tables that point to this record.
Execution plan
Shown by ExplainQuery. See Execution plans.
This is the only exception to the principle: the agent receives a summary of the plan, so that it can suggest indexes. This summary only contains structure (tables, columns, indexes, estimates), never data.
Export
Shown by ExportDatabase. A card gives the format, size and content of the export, with a Download button. See Import and export.
Handle an artifact
- Hide or show an artifact in the conversation.
- Open it full size in a panel next to the chat.
Artifacts are shown again when you reopen a conversation. The data is then read again from the database: you see its current state.
In the terminal
opendb chat renders artifacts as text: tables, key figures, horizontal bar charts. /open followed by an artifact's number shows it in full, /csv exports it. See Chat in the terminal.