Start with a small, real model
Map a local orders dataset to the metric and dimensions you want to share. Review the calculation before any agent relies on it.
Define a metric against a DuckDB file, review it with your team, and run it locally through DOSI. Use the same explicit business meaning in agent workflows without requiring a cloud warehouse for the first iteration.
The default DOSI build executes locally with its bundled DuckDB library; your model remains separate from the data file.
DuckDB views and macros reuse SQL logic inside the database. DOSI adds a team-reviewed Apache Ossie model for named metrics that agents and applications can request, while DuckDB remains the local execution engine.
Reusable SQL definitions live in DuckDB catalog objects.
The semantic model is managed separately from the DuckDB file.
Map a local orders dataset to the metric and dimensions you want to share. Review the calculation before any agent relies on it.
The default DOSI build opens DuckDB in process and returns Arrow-native results. You can inspect the generated SQL and result without provisioning a remote warehouse.
DuckDB is also a built-in Datus Agent adapter. The Agent can work with the local database while DOSI handles the separate semantic execution path.
Point DOSI at a DuckDB database file, validate your model, then ask for a metric by a named dimension.
datasources:
local_duckdb:
type: duckdb
uri: duckdb:////absolute/path/analytics.duckdbdosi query --model model.yaml \
--metrics revenue --group-by orders.status \
--execute --connection local_duckdbReplace the sample path and model.yaml with your own file and validated model. This example shows the invocation, not an invented output. The default DOSI build bundles DuckDB; the lean build has different requirements.
The default DOSI build includes an in-process DuckDB executor. A file-backed connection uses a duckdb: URI; omit the URI for an in-memory connection.
Use an absolute DuckDB file path while getting started. Confirm the file is accessible and contains the tables your model references.
Define the dataset, metric, dimension and relevant relationships in an Apache Ossie model. Validate the model before asking DOSI to execute it.
Use --connection local_duckdb and inspect generated SQL and Arrow-backed results. Keep the DuckDB file and model under your own versioning and access controls.
The default DOSI download bundles DuckDB. The lean build instead requires a compatible DuckDB CLI on PATH and cannot persist an in-memory batch across separate processes. Datus Agent’s built-in DuckDB adapter is a related but separate path.
Local execution makes the first model easier to inspect before a wider rollout.
Try the definition against a local dataset, compare the result to known numbers and revise the model before sharing it.
Expose the reviewed metric through DOSI interfaces so an agent can request it without recreating the calculation from column names.
How local execution works with DOSI and Datus Agent.
Views and macros let you reuse SQL within DuckDB. DOSI keeps metric and dimension definitions in a separately reviewed Apache Ossie model and exposes them through MCP, API and CLI. DuckDB still executes the generated query.
No. The default DOSI build includes DuckDB for local in-process execution. Connect to a local file or use an in-memory database where appropriate.
Datus Agent includes a DuckDB adapter. Configure its datasource separately from DOSI’s semantic connection, then use each path for the task it supports.
No. The lean build invokes a DuckDB CLI installed on your PATH and has different in-memory behavior. Consult the connector guide before choosing it.
Start with a definition and a dataset your team can verify, then decide where to reuse it.