Skip to content

Copilot

The copilot is an assistant that knows your sources: it searches for tables, reads their descriptions, writes Trino SQL, and suggests questions, dashboards or table descriptions to you. It opens from the Copilot button in the top bar, from the home page (Ask the copilot), in the SQL editor, a question, a dashboard or the Structure screen.

It is optional: without a configured provider, its buttons do not appear.

The panel keeps the context of the screen it is opened from:

ScreenWhat you might ask it
Home, or all data“What is the revenue by region over the last 6 months?”
SQL editorwrite a query; Fix with the copilot passes it the Trino error
Questionmodify or explain the current question
Dashboard“Build a customer service dashboard”, or add cards
StructureDescribe with the copilot: labels, descriptions and semantic types of a table

To do so, it has tools:

ToolRole
search_schemasearch for tables, models and metrics by keywords
describe_tableread a table: columns, Trino types, semantic types, descriptions, values, relationships
list_metricslist the metrics and models defined by the team
run_queryrun a read-only query, under your permissions — if you allow it
show_chartshow a chart in the conversation
propose_questionsuggest a question: SQL and visualization
propose_dashboardsuggest a dashboard, or cards to add to the open dashboard
propose_metadatasuggest metadata for a table
find_filter_values, set_filterson a dashboard: find a filter’s values, then set the filters

The descriptions, semantic types and values you enter in Structure are part of its context: the better your tables are described, the more accurate its answers.

Answers arrive continuously (streaming), and conversations are kept per person: the panel takes its conversation along from one screen to the next, New conversation starts another one, and History lists the recent conversations, to reopen or delete.

It shows charts in its answers — Add to a dashboard turns one into a card, in one click — and its SQL is formatted and coloured as in the editor. The SQL it suggests is first checked by Trino, under your permissions and without reading any data: a suggestion that would fail is never shown to you.

The paper clip, in the input area, attaches files to the message; you can also drag them onto the area or paste them (a screenshot, say). The copilot reads them along with the question: “compare this budget with our sales”, “what does this specification say?”.

FileWhat the copilot receives
PDFits text, page by page
Excel (.xlsx, .xlsm)each sheet as CSV, dates included (5,000 rows per sheet at most)
Word (.docx), PowerPoint (.pptx)the text, tables and slides in order
Text, CSV, JSON, SQL, Markdown…the file as it is
Images (PNG, JPEG, GIF, WebP)the image itself, if the model can read images
  • At most 5 files per message, 10 MB each, 20 MB in total; 5 MB for an image.
  • A file’s text is cut beyond 100,000 characters, a message’s beyond 250,000; the copilot is told what is missing.
  • Legacy formats (.xls, .doc, .ppt) and OpenDocument are not read: save them as .xlsx, .docx or PDF. A scanned PDF, made of images without text, cannot be read either.
  • Files are read by the API and sent to the AI provider with the conversation; they stay in it for the following questions. Their content is treated as data, never as instructions.

On a dashboard, the copilot sets the filters from a sentence: “show me Brittany in March”. It looks up the filters’ actual values (“brittany” → “Bretagne”), sets them, and says so in one sentence; “all regions” removes the filter. The filters apply at once, as if you had chosen them — a question about the data (“which channel sells most?”) leaves them alone.

The microphone, in the input area, dictates the question: the text is written as you speak, and is sent when you stop. The answer to a question asked aloud is read aloud, without its code or tables. Voice mode works in the assistant too.

The copilot changes nothing by itself. A suggestion appears in the panel with an Apply (or Open) button: the question opens in the editor, the cards are added to the dashboard, the description is written into Structure — only when you click. Only a dashboard’s filters, when you ask it to set them, apply directly: they change only what you see, nothing is saved.

  • It reads under your permissions. run_query goes through Trino under your identity, like any other query: your row rules apply, hidden columns do not exist for it, and masked columns reach it masked.
  • It reads nothing without your consent. The Allow access button, in the input area, off by default, lets it run queries under your permissions. When it is off, the copilot writes queries without running them.
  • It only receives an excerpt of each result: 40 rows at most.
  • A quota limits the number of messages per person per hour.
  • Every call is logged: provider, model, screen, tokens consumed, tools used, duration, any error.

Its queries appear in the history with the origin “copilot”.

The copilot is configured through the API and worker environment variables:

VariableDefaultRole
AI_PROVIDERanthropic if ANTHROPIC_API_KEY is set, otherwise openai if OPENAI_API_KEY is, otherwise noneanthropic, openai, mistral, openai-compatible or none
AI_API_KEYANTHROPIC_API_KEY, otherwise OPENAI_API_KEYthe provider’s key
AI_MODELclaude-sonnet-5-5 (Anthropic), mistral-large-latest (Mistral), gpt-4.1 (the others)the model
AI_BASE_URLthe provider’s URLrequired for openai-compatible
AI_HOURLY_QUOTA60messages per person per hour
AI_PROVIDER_SSL_VERIFYtruefalse: the provider’s certificate is not checked

A few examples:

Fenêtre de terminal
# Anthropic
AI_PROVIDER=anthropic
AI_API_KEY=sk-ant-…
# Mistral
AI_PROVIDER=mistral
AI_API_KEY=…
# An OpenAI-compatible server (gateway, local model…)
AI_PROVIDER=openai-compatible
AI_BASE_URL=https://llm.example.com/v1
AI_API_KEY=…
AI_MODEL=my-model

Administration › Settings shows the provider, the model, the quota and whether the configuration is complete. When a person reaches their quota, the copilot tells them so and invites them to try again later.

eodia insights is free software by Eodia.