We recommend the warehouse provided be sized Small or larger so Delphina can execute queries with acceptable performance.
Connecting Snowflake
Step 1: Gather connection details
You’ll need the following from your Snowflake account:| Field | Where to find it | Example |
|---|---|---|
| Account identifier | Snowflake account URL (without .snowflakecomputing.com) | xy12345.us-east-1 |
| Warehouse | Name of the warehouse Delphina should use | DELPHINA_WH |
| Database | Default database for the connection | ANALYTICS |
| Role | Role granted to the Delphina user | DELPHINA_ROLE |
Step 2: Create the user, role, and grant data access
Run the following DDL in Snowflake. It creates a dedicated user and role and grants SELECT access to every object in a database. Prune the grants down to a smaller set of schemas/tables if you’d rather scope Delphina narrowly.Step 3: Grant access to query history
Delphina uses query histories from trusted users to prioritize tables and learn how your data is used. Choose one of the two patterns below.- Option A — IMPORTED PRIVILEGES (simplest)
- Option B — Scoped secure view
Give the role read access to the shared
SNOWFLAKE database, which exposes ACCOUNT_USAGE.QUERY_HISTORY.Step 4: (Optional) Grant access to Cortex Analyst objects
If you use Snowflake Cortex Analyst and want Delphina to reuse your existing semantic definitions, grant the following additional permissions:Step 5: Create the connection in Delphina
- Navigate to analytics.delphina.ai.
- Click your name in the bottom-left, then Org Admin > Warehouse Connections.
- Click Add Connection on the target workspace.
- Set the Warehouse Type to Snowflake.
- Fill in the account identifier, warehouse, database, role, and user credentials from the steps above.
- Click Create Connection, then Test Connection to verify Delphina can reach your warehouse, list tables, and access query history.
Troubleshooting
| Problem | Fix |
|---|---|
| Test Connection fails | Verify the account identifier, warehouse, and role exist and that delphina_user can log in with the supplied credentials. |
| ”Browse Tables” empty | Confirm USAGE is granted on the database and schema, and SELECT on the tables. Future grants only apply to objects created after the grant. |
| ”Show Top Users” empty | Either IMPORTED PRIVILEGES ON DATABASE SNOWFLAKE is missing or the scoped QUERY_HISTORY_SCOPED view hasn’t been shared with delphina_role. |
| Queries time out or feel slow | Increase the warehouse size to Small or larger, or assign a dedicated warehouse to delphina_role. |
| Cortex Analyst semantics not picked up | Check that READ is granted on the models stage and SELECT, REFERENCES on the semantic view. |