Overview
The Datasets page is where customers manage reusable fast-data layers that power apps, dashboards, and analytical workflows.
What you can do
- review available datasets,
- filter datasets by type or status,
- refresh datasets,
- materialize or update datasets where supported,
- delete user-created datasets,
- inspect details and preview data,
- manage sharing rules,
- connect refresh behavior to scheduling workflows,
- jump to the owning chat thread or dashboard when a dataset is scoped to one.
{bot_id}--{thread_id} form (for example Eve--chat_abc123). Genesis opens the canonical chat URL /chat/{bot_id}/thread/{thread_id}. Thread scopes that omit a bot identifier do not show a link because the conversation is not addressable without one.
When to use datasets
Use a dataset when you want a stable, reusable data layer for an app or repeatable workflow without rebuilding the full upstream query every time. Dataset API and agent-tool actions use the requesting user’s own dataset permissions. With authentication enabled, reading and refreshing requireread access. Only the dataset owner
or an administrator may change any part of its definition or delete it; this
includes display fields such as its name and description. Materializing snapshots
and changing refresh policy also require manage access. Creating a dataset assigns
it to the requesting user. A refresh runs with the requesting user’s connection
access, not an arbitrary run_as_user_id. With authentication enabled, GenesisApp process tokens carry no
person’s authority or dataset scope; proxied data calls use a short-lived viewer
token. See GenesisApps.
Refresh policies
Each dataset definition stores arefresh_policy object. Genesis validates and
normalizes that policy when you create or update the dataset, then
automatically syncs scheduled policies into the scheduler.
Scheduled refreshes default to
@daily when schedule is omitted. cron:
schedules use five fields in the order minute, hour, day, month, and
day_of_week.Definition guardrails
Genesis validates dataset definitions before it saves or refreshes them:- unknown keys in the request root,
sources[*], orviews[*]fail fast instead of being ignored, - SQL sources must be exactly one read-only
SELECTorWITHquery, even when the SQL is loaded throughsql_path, - MongoDB source queries must be read-only; an aggregation containing a top-level
$outor$mergestage is refused on create, update, or refresh, sources[*].max_rowsis optional, but when you set it the value must be at least1,- source IDs and view IDs must stay unique case-insensitively, view dependency cycles are rejected, and index targets and indexed columns must exist before Genesis will persist the definition.
sql_path points to a recorded upload, an authorized dataset refresh can retrieve its
missing SQL bytes from the Databricks App volume before parsing the definition; the initial
refresh after a restart waits for this retrieval. See volume-backed upload behavior.
LiteLLM Admin daily spend source
A materialized dataset can read daily spend from a saved LiteLLM Admin connection withsource_type="litellm_admin". It produces one row per date, key hash and model, including
the key alias, user and team when the proxy reports them, spend, request counts and token
counts. If the proxy has no per-model key breakdown, the model is null.
connection must name a saved litellm_admin connection, and refresh reads it as the
refreshing user. By default, lookback_days is 30 (the last 30 days including today); it can be set from 1 to 366.
Alternatively, provide inclusive start_date and end_date values in YYYY-MM-DD format;
do not combine dates with lookback_days. max_pages defaults to 50 and accepts 1 to
200 pages per day, with up to 1,000 rows per page, on proxies that require paged activity
reads. For its aggregated-first request path and paged fallback, see
LiteLLM Admin Tools. A capped read fails
without replacing the active snapshot unless allow_partial is true.
An empty spend window is valid and retains the dataset’s columns. The source is read when the
dataset refreshes; the dataset’s refresh_policy controls when that happens (manual by
default, or on the configured TTL or schedule). For connection setup, see
LiteLLM Admin connections.
Tool Observability dashboard
The default Tool Observability dashboard includes a Tool Calls by User table, with one row per user and call/error counts, average and maximum duration, and the last call time in UTC. The tool-call detail and slow-query tables also identify the user. Genesis resolves recorded user IDs against the users dimension and displays an unmatched ID as recorded; calls without a recorded user display(no user). System
calls recorded under a login subject also resolve through the users dimension. If a
dataset snapshot predates the per-user view,
the dashboard reports that panel as unavailable without blanking the other panels.
Partial refreshes and snapshot history
A refresh normally rebuilds all sources in the dataset, but API and agent-tool callers can passonly_source_ids to refresh only a subset of sources.
A dataset with no source definitions cannot be refreshed manually or by a
schedule: Genesis returns 409 with code dataset_has_no_sources and keeps the
active snapshot. This protects
rows written directly by a Flow or import, which a source-based rebuild could
otherwise replace with an empty snapshot. The Datasets page hides Refresh
for these datasets; run the writer again to update their rows.
- Genesis validates
only_source_idsbefore it starts the refresh. - If a requested source ID does not exist in the dataset definition, the
request fails with a
400and includes bothunknown_source_idsandavailable_source_ids. - A failed partial refresh never replaces the active snapshot.
- A dataset’s last-refresh timestamp advances only after a successful refresh. A running or failed refresh updates its status but leaves the last successful time intact.
- refreshing creates a new snapshot and switches
active_snapshot_idonly after the new snapshot is ready, - you can list snapshots, roll back to a prior
readysnapshot, or delete inactive snapshots, - Genesis never deletes the active snapshot through the inactive-snapshot cleanup path, even if it is requested explicitly.
sqlite_durability.user_db_max_bytes in Advanced Settings.
Reusing ad-hoc query results
Dashboard and GenesisApp reads can reuse the result of an identical, recent ad-hoc query instead of creating and building another query-cache dataset. The match includes the SQL statement, connection, user, row limit, and scope; concurrent identical requests share one build. Writes and queries run inside an agent thread are not reused. The result is rebuilt once its snapshot reaches the configured age.Dataset materializer workers
By default, Genesis builds eligible dataset snapshots in worker processes so a large refresh does not hold the server’s Python interpreter while it reads source rows and writes the snapshot. The first worker starts for the first build; additional workers start only when all running workers are busy. Additional workers exit after sitting idle for the configured interval, releasing their memory. With at least two workers, one is kept available for ad-hoc query-cache builds so they do not queue behind larger builds. The first build can take extra time while a worker starts. Refreshes for Iceberg or DuckDB connections, repository SQL-file sources (sql_path), and builds where no worker can start run in the
server process instead. Worker startup or fallback is reported in the server log.
When datasets.materializer.out_of_process is on (the default), the same pool
handles writes of 5,000 rows or more handed to a dataset snapshot (for example,
flow output, Mongo results, or mission imports) or a staged dashboard. If no
eligible worker frees within two seconds, or none can start, the write runs in
the server process instead. A worker write fails if it exceeds
datasets.materializer.timeout_s (default 600 seconds).
Deletion safeguards
Only the dataset owner or an administrator may delete a user-created dataset from the Datasets page. Genesis also adds guardrails around destructive actions:- built-in system datasets such as the Cost & Usage cube and Tool Observability cube cannot be deleted,
- if a dataset is still bound to one or more apps, Genesis shows the affected apps and requires a second confirmation before the delete proceeds,
- the confirmation flow is there to prevent breaking apps that still depend on the dataset binding.
Automatic retention and cleanup
Genesis also applies background retention to dataset storage. The active snapshot is never deleted by this cleanup flow.
When scheduled cleanup is enabled, its first pass runs
120 seconds after
server start, then runs at the configured interval. Configure
jobs.dataset_cleanup.startup_delay_seconds (default
120) to change the initial delay. Each pass drains eligible datasets and
snapshots in batches of up to jobs.dataset_cleanup.batch_size (default 100
of each), until no candidates remain, a batch deletes nothing, or the
jobs.dataset_cleanup.pass_budget_seconds (default 600) is reached. The batch
that crosses the time budget finishes; remaining candidates wait for the next
pass. These settings are read at the start of each pass, except the startup
delay, which is read when the scheduler registers the job. After a successful
dataset refresh, Genesis also applies the snapshot policy to superseded
snapshots; the active snapshot remains protected.

