Skip to content

Commit 67867f1

Browse files
committed
1. Voice Input for Chat
2. Revamped Notification Screens 3. Updated AI SQL Functions 4. Fixed Issues on the Streamlit
1 parent 464c4d9 commit 67867f1

File tree

9 files changed

+2703
-241
lines changed

9 files changed

+2703
-241
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Snowflake AI Toolkit is an AI Accelerator and Playground for enabling AI in Snow
77
### Playground
88

99
An interactive environment where users can chat and experiment with Snowflake Cortex functions, test prompts, and and play around with cortex functions.
10+
Supports both manual text entry and voice-to-text input for prompts wherever needed, across multiple functions including Complete, Translate, Extract, Sentiment Analysis, and AI Complete (debug mode only)
1011

1112
### Build
1213

@@ -32,6 +33,25 @@ Cortex Agents orchestrate across both structured and unstructured data sources t
3233
- Test the Agent against the Data
3334
- Utilize Cortex Search and Cortex Analyst through Agents
3435

36+
### Audio Input Integration
37+
38+
The Snowflake AI Toolkit now supports voice input across multiple functionalities, making it easier to interact with AI functions through speech (available in debug mode only):
39+
40+
- **Voice-to-Text Conversion**: Convert spoken words directly into text inputs for various AI functions
41+
- **Multi-Function Support**: Available for Complete, Complete Multimodal, Translate, Extract, Sentiment Analysis, AI Classify (Image), and AI Complete functions
42+
- **Real-Time Processing**: Instant speech recognition with immediate text population in input fields
43+
- **User-Friendly Interface**: Microphone button (🎙️) positioned conveniently next to the Run button for seamless workflow
44+
- **Debug Mode Only**: Audio input feature is enabled only when `mode` is set to `"debug"` in `src/settings_config.json`
45+
46+
### Notification
47+
48+
- **Real-Time Updates**: Receive instant notifications for every function call and completion.
49+
- **Synchronous & Asynchronous Support**: Stay informed about both immediate and long-running processes, including RAG and fine-tuning tasks.
50+
- **Computation Details**: View token usage and token credit consumption for each operation.
51+
- **In-App Delivery**: All notifications appear directly within the application interface.
52+
- **Enhanced Transparency**: Get clear, timely feedback throughout all workflows.
53+
54+
3555
## Prerequisites
3656

3757
Before you begin, ensure you have met the following requirements:

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ langchain
55
pandas
66
pyarrow
77
snowflake
8-
PyJWT
8+
PyJWT
9+
streamlit-mic-recorder
10+
snowflake.core

snowflake.yml

Lines changed: 48 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,48 @@
1-
definition_version: '1'
2-
streamlit:
3-
name: snowflake_ai_toolkit
4-
stage: sf_ai_stage
5-
query_warehouse: compute_wh
6-
main_file: streamlit_app.py
7-
env_file: environment.yml
8-
#pages_dir: pages/
9-
additional_source_files:
10-
- src/cortex_functions.py
11-
- src/cortex_agent.py
12-
- src/utils.py
13-
- src/html_snippets.py
14-
- src/styles.css
15-
- src/home.py
16-
- src/playground.py
17-
- src/build.py
18-
- src/rag.py
19-
- src/fine_tune.py
20-
- src/setup.py
21-
- src/notification.py
22-
- src/settings_config.json
23-
- src/logo.png
24-
- src/query_result_builder.py
25-
- src/search.py
1+
definition_version: '2'
2+
3+
entities:
4+
streamlit:
5+
type: streamlit
6+
identifier: snowflake_ai_toolkit_demo
7+
stage: sf_ai_stage
8+
query_warehouse: compute_wh
9+
main_file: streamlit_app.py
10+
# pages_dir: pages/
11+
# external_access_integrations:
12+
# - test_egress
13+
# secrets:
14+
# dummy_secret: "db.schema.dummy_secret"
15+
# imports:
16+
# - '@sf_ai_stage/streamlit_mic_recorder.zip'
17+
artifacts:
18+
- streamlit_app.py
19+
- src/cortex_functions.py
20+
- src/cortex_agent.py
21+
- src/utils.py
22+
- src/html_snippets.py
23+
- src/styles.css
24+
- src/home.py
25+
- src/playground.py
26+
- src/build.py
27+
- src/rag.py
28+
- src/fine_tune.py
29+
- src/setup.py
30+
- src/notification.py
31+
- src/settings_config.json
32+
- src/logo.png
33+
- src/query_result_builder.py
34+
- src/search.py
35+
- environment.yml
36+
37+
# audio_to_text:
38+
# handler: 'src.functions.audio_to_text'
39+
# stage: sf_ai_stage
40+
# signature: ''
41+
# returns: string
42+
# artifacts: ['src/']
43+
# type: function
44+
# imports:
45+
# - '@sf_ai_stage/streamlit_mic_recorder.zip'
46+
# meta:
47+
# use_mixins:
48+
# - snowpark_shared

0 commit comments

Comments
 (0)