Evaluating Snowflake Cortex Agents: How CoCo Streamlines LLM Benchmarking
Snowflake's CoCo assistant and Cortex Agent evaluations offer developers a structured methodology to grade agent outputs and refine prompts using automated LLM judges.

A common challenge in building conversational AI agents is that standard demo scripts rarely reveal how systems perform under unpredictable real-world inputs. While an agent might answer a few pre-selected questions accurately during testing, missing definitions or out-of-bounds user queries often cause failures in production. Snowflake addresses this validation gap by combining its Cortex Agent evaluation framework with CoCo, an in-product assistant within Snowsight, enabling developers to systematically grade and iterate on agent behavior using automated LLM judges.
Testing agents through automated evaluations
The evaluation methodology relies on comparing agent performance against defined benchmark datasets. As demonstrated by technical author Krishnan Srinivasan, the workflow begins by establishing a structured data layer and a minimal agent configuration before running automated grading protocols.
To illustrate the setup, a standard ORDERS table containing 40 records across categories such as Electronics, Apparel, and Home—with statuses split between Delivered and Returned—was created in a database named RETURNS_DESK_DB.DEMO. Using CoCo in Snowsight, a semantic view was configured for Cortex Analyst, assigning dimensions to category and status columns, measures to order amounts, and metrics to aggregate returned order counts. CoCo was then prompted to generate a baseline agent named RETURNS_DESK_AGENT equipped with a single Cortex Analyst tool and brief operational instructions.
The grading system relies on two primary metrics:
- Answer correctness: An LLM judge measures how accurately the agent's output matches expected ground-truth answers provided in a test set.
- Logical consistency: The framework evaluates whether the agent's instructions, planning steps, and tool invocations logically align, operating without requiring ground-truth answers.
The baseline run and prompt refactor
To benchmark performance, a test set of five questions was populated into an AGENT_EVALUATION_DATA table via the 02_eval_dataset.sql script. The dataset included edge cases designed to reveal instruction gaps, such as a revenue question dependent on unstated business logic and an out-of-scope query asking about Houston weather to confirm the agent would decline appropriately.
In the initial evaluation run, named v1_baseline_strict, the agent achieved a 1.00 score in logical consistency and an overall answer correctness score of 0.93. Four out of five questions passed completely. However, the revenue question received a lower correctness score of 0.67 because the agent provided two conflicting numbers: the gross total across all orders ($2,386) and the net total deducting returns ($1,525). Meanwhile, the agent correctly declined the out-of-scope weather query.
Using CoCo to analyze the low-scoring query, instructions were updated to clarify that revenue calculations must strictly count delivered orders only, while reaffirming that non-order queries should be explicitly declined. A second run, named v1_tuned, demonstrated the impact of the prompt revision. Answer correctness on the revenue query moved from 0.67 to 1.00, raising the overall answer correctness benchmark for the evaluation run to 1.00.
What it means for developers
Automated evaluation frameworks like Snowflake Cortex evaluations combined with CoCo turn prompt engineering into a quantitative, reproducible process. Rather than relying on manual inspection or informal spot-checking, developers can track score deltas directly inside Snowsight following every instruction edit or data schema modification.
While a five-question benchmark serves as an introductory baseline rather than a complete production certification, establishing automated testing early makes expanding to larger datasets, multi-tool setups, and tool selection metrics far more manageable. When building and benchmarking multi-step AI workflows across different LLM backends, developers can try top AI models cheaply through one API at https://apixoai.online.
By standardizing how agent responses and execution traces are judged, teams can detect ambiguity gaps, refine system prompts with precision, and deploy conversational tools with clearer reliability baselines.
Source: How Good Is Your Agent? Let Snowflake CoCo Grade It — Towards AI. Written by the Apixo team from that report.
One key for Claude, GPT, GLM, DeepSeek and more. Pay per token with crypto.
Get your API key

