Generate Vector Embeddings for RAG 🔥| Day 18 of 30 Days of AI Coding Challenge
Today, we’re building a core foundation of any RAG system — embeddings.
Instead of treating text as plain words, we’ll convert customer reviews into meaningful numerical vectors using Snowflake Cortex’s embed_text_768 function. These embeddings allow AI to understand semantic meaning, not just keywords.
🔥 What you’ll learn today
What embeddings are (in simple terms)
Why embeddings are critical for RAG & semantic search
How to generate 768-dimension vectors using Snowflake Cortex
How to store embeddings using the VECTOR data type in Snowflake
Prepare your data for semantic search in Day 19
🛠 Prerequisites
Completed Days 1–17 of the challenge (If not, check the earlier videos and complete them first.)
• 30 Days of AI Coding Challenge 🚀 | Build A...
Timecodes
0:00 - Introduction
0:26 - What you will Learn today
0:38 - What is Embeddings & Why we need it
1:34 - Why AI Coding Challenge
1:46 - Demo of the Vector Embeddings for RAG
5:38 - Code walkthrough of Vector Embeddings for RAG
5:43 - Loading Chunks from Day 17
6:20 - Generate Embeddings
7:44 - View Generated Embeddings
8:26 - Save Embeddings in Snowflake
8:55 - Replace Mode for Snowflake Table
9:55 - Vector Data Type in Snowflake
10:45 - View Saved Embeddings in Snowflake Table
11:17 - View Individual Embeddings in Snowflake Table
13:03 - Learn more about Vector Embeddings
13:14 - Implementation of Vector Embeddings for RAG
13:49 - Outcome of Day 18 of AI Coding Challenge
14:16 - What you will learn tomorrow
👉 Resources
Day 18 challenge guide:
[https://30daysofai.streamlit.app/?day=18]
Vector Embeddings in Snowflake
https://docs.snowflake.com/en/user-gu...
Vector Data Types
https://docs.snowflake.com/en/sql-ref...
A Beginner's Guide to Vector Embeddings
• A Beginner's Guide to Vector Embeddings
Official challenge announcement:
[https://discuss.streamlit.io/t/the-30...]
Code reference (all days):
[https://github.com/sudeepkumar10x/30D...]
---
💼🧑💻 Join Our Data Engineering Community
Get exclusive learning resources, updates, and discussions.
👉 https://chat.whatsapp.com/FBv72iezg9M...
👉 Do your hands dirty and try different combinations for batch size
💬 Comment “DONE” once you finish Day 18
📹 Get ready for tomorrow where we will retrieve the best context using Semantic search on these embeddings for LLMs 🚀
#30DaysOfAI #Streamlit #Snowflake #AICoding #DataEngineering #SudeepKumar10x #AIChallenge #LLM #RAG #embedding #Vector #vectorembeddings