AI assistants
Console assistant

Console Assistant

The Assistant is a chat page inside the console (/assistant) that answers questions about your own lakehouse — catalogs, tables, pipelines, query history and past runs — using console-api's own stores and the same governance as any other client.

What it can read

  • Catalogs and tables — list_catalogs, one catalog's brief (get_catalog_context), search_tables when the subject's location is unknown, and describe_table for one table's full column list, keys, layout and meanings.
  • Queries — run_query runs one read-only statement (SELECT, WITH, EXPLAIN, DESCRIBE) through the governed execution path. DDL and DML are refused.
  • History — search_query_history, get_execution and get_execution_result for past runs, their timing, errors and stored rows.
  • Pipelines and schedules — list_pipelines, list_pipeline_runs, pipeline_freshness, list_pipeline_alerts, list_scheduled_jobs, and the caller's saved queries.

Everything is filtered by the asker's own access: a table or column the role cannot see is absent, not greyed out, and an id you cannot see resolves to not found.

Writes are proposed, not run

run_query is read-only, so a question that asks for a change gets the SQL written out in a fenced block — ready to open in Studio — rather than a silent DROP. Four actions do change something: run_pipeline, set_pipeline_paused, run_scheduled_job and email_report. Each arrives as a pending action card that you approve or dismiss, and nothing happens until you approve. Running a pipeline or pausing one is company-admin only.

The actions still respect the guards: a scheduled job's SQL faced the same checks when it was created, and a pipeline run starts the pipeline, not a different one.

Chats and privacy

A chat is private to the person who started it and saved automatically. The transcript lives in the saved-results bucket under ai-chats/; its metadata, reference chips and pending actions live in Postgres. A turn keeps running if you leave the page — closing the tab does not cancel the answer, and every finished step is written as it happens, so returning shows the work so far.

Charts and reports

A question that calls for a chart gets one instead of a printed table: bar, histogram, line, area, pie or donut, with a title, labels and up to four series. Tool steps fold away so the answer reads as prose.

A turn can be emailed as a report — a one-to-three sentence TL;DR, the answer, and its charts inline as PNGs. The mail goes only to the signed-in user's own account address; there is no recipient field, so the Assistant cannot be used to send your data to someone else. The feature reuses the install's existing mail relay (the same credentials Keycloak uses for invitations) and is off on an install without mail.

Artifacts

An artifact is one answer lifted out of its chat: the question, the Markdown answer, the steps the turn took, and the tables and runs it referenced.

  • Save one from the chat, or over MCP with save_artifact.
  • The page is read-only and prints to PDF from the browser.
  • Sharing is by grant: a company admin, the whole company, one of the console's roles, or one person. Adding someone to a role shares what that role was granted; removing them takes it away.
  • Anything the caller may not see is a 404, so a forwarded link grants nothing on its own.
  • Renaming or deleting the original chat does not change what was shared.

/artifacts lists Mine and Shared with me.

Turning it on

An admin adds OLLAMA_API_KEY under Settings → Environment. The key is proved with one small completion before it is stored, so a bad key fails there rather than in a user's first question. Until a key is set, a question answers with OLLAMA_API_KEY is not set rather than failing silently.