Skip to content

Commit 5642a17

Browse files
authored
Merge pull request #496 from sigmacomputing/snow_intel_31_oct_2025
snow_intel_update
2 parents a434564 + 5a45cbc commit 5642a17

File tree

8 files changed

+26
-13
lines changed

8 files changed

+26
-13
lines changed
33.8 KB
Loading
142 KB
Loading
166 KB
Loading
6.6 KB
Loading
5.46 KB
Loading
120 KB
Loading
185 KB
Loading

site/sigmaguides/src/partners_snowflake_intelligence/partners_snowflake_intelligence.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -496,11 +496,17 @@ Duration: 5
496496

497497
There is a Sigma template we can use to save you the time of building the Sigma workbook yourself, although that is not hard to do either.
498498

499-
Open the template......
499+
In Sigma, select `Templates`, search for `quickstarts` and select the `Snowflake Intelligence Quickstart` template:
500500

501-
We also want to store all the questions/responses in the warehouse, but the template needs a place to do that. We will use an input table to make that really simple.
501+
<img src="assets/cortex_25.png" width="800"/>
502+
503+
This will open a pre-configured workbook for us where we can make a few additions and adjustments. Templates can save a lot of time!
504+
505+
<img src="assets/cortex_26.png" width="800"/>
502506

503507
### Add an input table
508+
We want to store all the questions/responses in the warehouse, but the template needs a place to do that. We will use an input table to make that really simple.
509+
504510
Select the `Data` tab and add an `Empty` input table using the `Element bar`.
505511

506512
<img src="assets/cortex_10.png" width="800"/>
@@ -517,7 +523,7 @@ Rename the input table to `Chat Log` and delete any empty rows:
517523

518524
Now click on the `Chat Log Modal` tab and add the `Chat Log` table from `Data` > `Elements` > `Data`:
519525

520-
<img src="assets/cortex_12.png" width="800"/>
526+
<img src="assets/cortex_12.png" width="600"/>
521527

522528
In this way, users can see the log but do not have access to the input table.
523529

@@ -530,19 +536,26 @@ We need to let the workbook actions know about our new input table and stored pr
530536

531537
Click on the `Cortex Demo` tab and select the `Submit Prompt` button to access the `Actions` options on the `Element panel`.
532538

533-
Notice that the `Insert row...` action has a warning icon next to it? This is because it doesn't know about the new input table yet.
534-
535-
<img src="assets/cortex_14.png" width="800"/>
539+
Notice that the `Insert row...` action doesn't know about the new input table yet.
536540

537541
Select that action, point it at the `Chat Log` input table on the `Data` page. Then make sure the `With values` are assigned correctly:
538542

539-
<img src="assets/cortex_15.png" width="800"/>
543+
<img src="assets/cortex_14.png" width="800"/>
540544

541545
Check the configuration of the `CALL_CORTEX_AGENT_API` action to make sure it can access the Snowflake stored procedure we created earlier:
542546

543-
<img src="assets/cortex_16.png" width="800"/>
547+
<img src="assets/cortex_16.png" width="600"/>
548+
549+
We made a mistake when we published the template; the action assigned to the `Read the QuickStart` button is incorrect--no problem!
550+
551+
Select the `Read the QuickStart` button, then change it's action as shown below, using this for the link value:
552+
```code
553+
https://quickstarts.sigmacomputing.com/guide/partners_snowflake_intelligence/index.html?index=..%2F..index#0
554+
```
555+
556+
<img src="assets/cortex_16a.png" width="800"/>
544557

545-
Click `Publish`.
558+
Click `Save as` and name the workbook `Snowflake Intelligence QuickStart`.
546559

547560
![Footer](assets/sigma_footer.png)
548561
<!-- END OF SECTION-->
@@ -587,7 +600,7 @@ Locate the `Product_Reviews_Big_Buys` CSV file and select it.
587600

588601
To keep this simple, we will store the data in `QUICKSTARTS.AGENTS` and create a new table called `Big_Buys`:
589602

590-
<img src="assets/cortex_20.png" width="800"/>
603+
<img src="assets/cortex_20.png" width="600"/>
591604

592605
Click `Next` and then select `Autofix column names` under the red `6 errors` button.
593606

@@ -598,7 +611,7 @@ Click `Load`. Snowflake will inform us when done:
598611
We can look at the sample data, which is retail sales information that also has a `REVIEW` column that we are interested in as it contains customer sentiment about each transaction.
599612

600613
### Agent tools
601-
The Cortex tool requires either a semantic view, procedure, or function to access the underlying data. It cannot access tables directly so we need to adjust for that.
614+
The Cortex tool requires either a semantic view, procedure or function to access the underlying data. It cannot access tables directly so we need to adjust for that.
602615

603616
In Snowflake, run the following command to create a simple function:
604617
```code
@@ -653,11 +666,11 @@ Asking the question in Sigma:
653666
<aside class="negative">
654667
<strong>NOTE:</strong><br> Performance of the agent will be affected by the warehouse size and how the data is accessed.
655668

656-
We could also revise the procedure to format the response better so that it reads more easily in Sigma.
669+
We could also revise the procedure to format the response better, so that it reads more easily in Sigma.
657670
</aside>
658671

659672
### Where to go next
660-
With this built, we can consider adding more agents and allowing users to select specific, named agent tools to focus questions on specific datasets using tailored agents to optimize responses.
673+
With this foundation in place, we can expand by adding additional agents and allowing users to select specific, named tools—enabling them to focus questions on targeted datasets using tailored agents that deliver more optimized, relevant responses.
661674

662675
![Footer](assets/sigma_footer.png)
663676
<!-- END OF SECTION-->

0 commit comments

Comments
 (0)