# Running an AI App and its Observability on One Snowflake Interactive Warehouse

DevFeed: [Running an AI App and its Observability on One Snowflake Interactive Warehouse](<https://devfeed.tech/articles/running-an-ai-app-and-its-observability-on-one-snowflake-interactive-warehouse-78489.md>)

Original publisher: [Read original article](<https://medium.com/snowflake/running-an-ai-app-and-its-observability-on-one-snowflake-interactive-warehouse-21f36ad739fa?source=rss----34b6daafc07---4>)

Author: Willem Reerink

Published: 2026-09-29T14:01:07Z

Content type: tutorial

Language: en

Sources: [Snowflake Builders](<https://devfeed.tech/sources/snowflake-builders.md>)

Topics: [LLM observability](<https://devfeed.tech/topics/llm-observability.md>), [semantic-layer](<https://devfeed.tech/topics/semantic-layer.md>), [observability](<https://devfeed.tech/topics/observability.md>), [dashboards](<https://devfeed.tech/topics/dashboards.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-observability](<https://devfeed.tech/tags/ai-observability.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [cortex](<https://devfeed.tech/tags/cortex.md>), [dashboard](<https://devfeed.tech/tags/dashboard.md>), [data](<https://devfeed.tech/tags/data.md>), [data-engineering](<https://devfeed.tech/tags/data-engineering.md>), [execution](<https://devfeed.tech/tags/execution.md>), [interactive](<https://devfeed.tech/tags/interactive.md>), [low-latency](<https://devfeed.tech/tags/low-latency.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [observability](<https://devfeed.tech/tags/observability.md>), [ops](<https://devfeed.tech/tags/ops.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [queries](<https://devfeed.tech/tags/queries.md>), [query](<https://devfeed.tech/tags/query.md>), [questions](<https://devfeed.tech/tags/questions.md>), [retail](<https://devfeed.tech/tags/retail.md>), [sales](<https://devfeed.tech/tags/sales.md>), [snowflake](<https://devfeed.tech/tags/snowflake.md>), [warehouse](<https://devfeed.tech/tags/warehouse.md>)

## AI overview

The article describes a Snowflake retail Q&A agent and its monitoring pipeline running on one Interactive Warehouse. Cortex Agents use a Semantic View to translate questions into SQL; the warehouse runs those queries and also serves a Streamlit dashboard over hourly flattened AI observability traces. In the reported benchmark, SQL execution stayed fast under concurrency (80-95 ms p50), while model planning and answer generation accounted for most turn time. Monitoring exposed a hidden reliability issue: successful turns masked frequent SQL retries from invented column names. The author traced many identifier errors to missing facts for SALES_TARGETS and fixed the Semantic View by registering target measures as facts. The setup requires Enterprise Edition with Cortex Agents and Interactive Analytics enabled.

## Source excerpt

by Willem Reerink Your queries running on an Interactive Warehouse!Introduction Running an AI app and its observability pipeline usually means two separate systems. I built both on one Snowflake Interactive Warehouse. Interactive Warehouses give you sub-second, high-concurrency query execution with auto-scaling and a fallback warehouse for heavy outliers. Cortex Agents let you build text-to-SQL agents over a Semantic View. AI Observability captures every trace, span, tool call, and token count into SNOWFLAKE.LOCAL.AI_OBSERVABILITY_EVENTS automatically. No SDK, no collector. The agent queries 25 million rows, the observability dashboard reads the same warehouse at the same speed, and the monitoring caught a semantic view bug the agent's own 100% success rate was hiding. What I built: A retail operations AI agent over 25 million rows of sales data (50 stores, 2 years) A semantic view declaring the data model for Cortex Analyst An Interactive Warehouse running the agent's generated SQL at concurrency An hourly Interactive Table that flattens AI observability traces into queryable columns A Streamlit-in-Snowflake dashboard for monitoring, all on that same warehouse A fix to the semantic view based on what the monitoring revealed Prerequisites: A Snowflake account with Cortex Agents and Interactive Analytics enabled (Enterprise Edition). Architecture for the interactive warehouse demo Full code, SQL, and Streamlit app are on GitHub. The Data Imagine you're an ops manager at a mid-size retail chain. 50 stores, 5 regions, two years of transaction history with a little under 30M rows of data. Your team fields questions like "which stores are missing target in the West this month?" and "which product categories are driving returns in Q4?". These are questions that used to mean a ticket to the BI team. The goal is a plain-language interface over the data, with no analyst in the loop. Eight tables in RETAIL_DEMO: The full DDL is in setup/01_create_raw_tables.sql on GitHub. The