Intelligent Text Classification using Snowflake Cortex LLM

  Рет қаралды 307

Knowledge Amplifier

Knowledge Amplifier

Күн бұрын

Large Language Models in Snowflake Cortex are hosted and fully managed by Snowflake and you don’t have to do any prior setup. Now you have model hosted nearer to where your data resides, it gives you the performance, scalability, and governance you look for your Enterprise.
In this video we are going to explore, how to use Cortex LLM for Text Classification usecases.
Prerequisite:
===========
Image Classification with Vector Semantic Search using Pinecone metadata filters
• Image Classification w...
Documentation Link:
=================
docs.snowflake...
Code:
=====
CREATE or replace Database snowflake_llm_poc;
use snowflake_llm_poc;
CREATE TABLE question_data (
text STRING,
category STRING
);
--training data
INSERT INTO question_data (text, category) VALUES
('What is the capital of France?', 'geography'),
('Name the tallest mountain in the world', 'geography'),
('How does quantum computing work?', 'technology'),
('Best practices for cybersecurity', 'technology'),
('Explain the theory of relativity', 'science'),
('What are the planets in our solar system?', 'science'),
('Who discovered electricity?', 'science'),
('What is the largest desert in the world?', 'geography'),
('Difference between classical and quantum computing?', 'technology'),
('What is the circumference of the Earth?', 'geography');
select * from question_data;
--Test Data: What is the largest ocean in the Planet Earth?
--vector embedding
create or replace table question_data_vector_store as
select TEXT,CATEGORY,SNOWFLAKE.CORTEX.EMBED_TEXT_768( 'e5-base-v2', Text) as embedding_vector from question_data;
select * from question_data_vector_store;
select text,category,VECTOR_L2_DISTANCE(SNOWFLAKE.CORTEX.EMBED_TEXT_768( 'e5-base-v2', 'What is the python programming language?'),embedding_vector) as distance from question_data_vector_store
order by
VECTOR_L2_DISTANCE(SNOWFLAKE.CORTEX.EMBED_TEXT_768( 'e5-base-v2', 'What is AI,ML & Deep Learning difference?'),embedding_vector)
limit 3;
Check this playlist for more Data Engineering related videos:
• Demystifying Data Engi...
Generative AI on AWS & Snowflake:
• Generative AI on Cloud
Apache Kafka form scratch
• Apache Kafka for Pytho...
Messaging Made Easy: AWS SQS Playlist
• Messaging Made Easy: A...
Snowflake Complete Course from scratch with End-to-End Project with in-depth explanation--
doc.clickup.co...
Explore our vlog channel:
/ @funwithourfam
🙏🙏🙏🙏🙏🙏🙏🙏
YOU JUST NEED TO DO
3 THINGS to support my channel
LIKE
SHARE
&
SUBSCRIBE
TO MY KZbin CHANNEL📺🔥💖

Пікірлер: 7
@JuanderBeats
@JuanderBeats 18 күн бұрын
Let's say I have a table test_set with list of text and 200 rows. Can I use that model to identify the category in just 1 command?
@Aman-lv2ee
@Aman-lv2ee Ай бұрын
so we can do all the stuff in snowflake as whatever we can do in AWS related to generative AI?
@KnowledgeAmplifier1
@KnowledgeAmplifier1 26 күн бұрын
If you're working with text data, then yes, @Aman-lv2ee! 🎯 For other unstructured formats like audio, video, or images, Snowflake doesn't yet offer the full range of capabilities that AWS provides for Generative AI.
@rajkishormahanada6223
@rajkishormahanada6223 Ай бұрын
Where do you draw inspiration for creating KZbin videos? Are you currently employed in a professional capacity? How do you manage your time as a married individual?😂😂
@KnowledgeAmplifier1
@KnowledgeAmplifier1 26 күн бұрын
Haha😂 Yes, I’m currently working at an organization. On weekends, I dive into learning new things and share whatever I pick up along the way in this channel. Honestly, inspiring comments from awesome viewers like you are a huge source of motivation. As for time management, I’m not married yet, so I’ve got a bit of extra time on my hands… for now! 😅
@rajkishormahanada6223
@rajkishormahanada6223 26 күн бұрын
@@KnowledgeAmplifier1 thank you for your reply sir. Nice content in your channel 👍
Snowflake Cortex LLM - COMPLETE Function Explained
9:50
Knowledge Amplifier
Рет қаралды 184
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 700 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,6 МЛН
Demo: Snowflake Cortex Analyst To Augment Business Intelligence With AI
26:43
Snowflake Developers
Рет қаралды 4,1 М.
Airflow for Beginners: Build Amazon books ETL Job in 10 mins
13:13
Sunjana in Data
Рет қаралды 9 М.
Faiss: Efficient Similarity Search and Clustering of Dense Vectors
26:42
Knowledge Amplifier
Рет қаралды 380
GraphRAG: LLM-Derived Knowledge Graphs for RAG
15:40
Alex Chao
Рет қаралды 118 М.
The Best RAG Technique Yet? Anthropic’s Contextual Retrieval Explained!
16:14
5 Steps to Build Your Own LLM Classification System
21:15
Dave Ebbelaar
Рет қаралды 10 М.
Document Q&A At Siemens Energy: Chatbots By Snowflake Cortex AI
39:54
Snowflake Developers
Рет қаралды 1,8 М.
5 Levels Of LLM Summarizing: Novice to Expert
19:19
Greg Kamradt (Data Indy)
Рет қаралды 53 М.
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 700 М.