Vector Databases simply explained! (Embeddings & Indexes)
Key Takeaways
This video explains Vector Databases, Embeddings, and Indexes
Full Transcript
recently Vector databases got a lot of Fame with companies raising hundreds of millions of dollars to build them and people calling it a new kind of database for the AI era on the other hand for many projects it might be an Overkill solution and using a traditional database or even just a numpy ND array might work just fine but there is no doubt the vector databases are extremely fascinating and allow many great applications especially when you want to give large language models like gpt4 long-term memory so in this video I will explain in a very beginner friendly way what Vector databases are and how they work we will go over some use cases for them and then I will briefly show you some options you can use so let's get started so let's start with the why over 80 percent of the data out there is unstructured such as social media posts images videos or audio data you cannot easily fit them into a relational database let's take an image as an example if you want want to put this into a relational database in order to search for similar images what ends up happening is that often we manually assign keywords or tags to it because from the pixel values alone we cannot really search for similar images and the same holds true for unstructured text blobs or audio and video data so we either have to assign tags or attributes to it often manually or we can find a different representation to store the data and this brings us to vector embeddings and Vector databases in short a vector database indexes and stores Vector embeddings for fast retrieval and similarity search so let's take a step back and look at those two important components first it uses clever algorithms to calculate the so-called Vector embeddings this is done by Machine learning models a vector embedding is just a list of numbers that represents the data in a different way for example you can calculate an embedding for a single word a whole sentence or an image and now we have numerical data that the computer can understand one easy possibility we get with vectors is to find similar vectors by calculating the distances and doing a nearest neighbor search so we can easily find similar items for Simplicity I display a 2d case here but in reality of course those vectors can have hundreds of Dimensions but just storing the data as embeddings is not enough performing a query across thousands of vectors based on its distance metric would be extremely slow and this is why those vectors also need to be indexed so the indexing process is the second key element of a vector database an index is a data structure that facilitates the search process so the indexing step Maps the vectors to a new data structure that will enable faster searching this is a whole research field on its own and different ways to calculate indexes exist so I won't go into details here just know that indexes are needed for efficient search so let's go over some use cases I already mentioned that we can use Vector databases to equip large language models with long-term memory this is for example what you can easily Implement with Lang chain we can use it for semantic search when we need to search not for exact string matches but rather based on the meaning or context of our question we can also use it for similarity search for images audio or video data so we can say hey find me a similar image to this one and we don't need to use some keywords or text to describe the image and we can use a vector database as a ranking and recommendation engine for example for online retailers it can be used to suggest items similar to past purchases of a customer since we can simply identify the nearest neighbors of an item in our database so now that you know some use cases let's go over some options you can use as a vector database there are a number of vector databases available for example we have Pinecone vv8 chroma redis also has a virtual database cool trans milvis or Vespa AI so I won't go into details here but if you want to see a separate video with an in-depth comparison then let me know in the comments below alright I hope you now have a good understanding of what Vector databases are and what you can do with them if you want to see more explainer videos and AI tutorials then make sure to subscribe to our Channel and then I hope to see you in the next video bye
Original Description
Vector Databases simply explained. Learn what vector databases and vector embeddings are and how they work. Then I'll go over some use cases for it and I briefly show you different options you can use.
Resources:
- Gentle introduction: https://frankzliu.com/blog/a-gentle-introduction-to-vector-databases
- What is a vector database: https://www.pinecone.io/learn/vector-database/
Get your Free Token for AssemblyAI👇
https://www.assemblyai.com/?utm_source=youtube&utm_medium=referral&utm_campaign=yt_pat_75
00:00 - Intro
00:44 - Why do we need vector databases
01:29 - Vector embeddings and indexes
02:58 - Use cases
03:45 - Different vector databases
Vector Database Options:
- Pinecone
- Weaviate
- Chroma
- Redis
- Qdrant
- Milvus
- Vespa
▬▬▬▬▬▬▬▬▬▬▬▬ CONNECT ▬▬▬▬▬▬▬▬▬▬▬▬
🖥️ Website: https://www.assemblyai.com
🐦 Twitter: https://twitter.com/AssemblyAI
🦾 Discord: https://discord.gg/Cd8MyVJAXd
▶️ Subscribe: https://www.youtube.com/c/AssemblyAI?sub_confirmation=1
🔥 We're hiring! Check our open roles: https://www.assemblyai.com/careers
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
#MachineLearning #DeepLearning
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from AssemblyAI · AssemblyAI · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Python Speech Recognition in 5 Minutes
AssemblyAI
Python Click Part 1 of 4
AssemblyAI
Python Click Part 2 of 4
AssemblyAI
Python Click Part 3 of 4
AssemblyAI
Python Click Part 4 of 4
AssemblyAI
Deep learning in 5 minutes | What is deep learning?
AssemblyAI
How to make a web app that transcribes YouTube videos with Streamlit | Part 1
AssemblyAI
How to make a web app that transcribes YouTube videos with Streamlit | Part 2
AssemblyAI
Batch normalization | What it is and how to implement it
AssemblyAI
Real-time Speech Recognition in 15 minutes with AssemblyAI
AssemblyAI
Regularization in a Neural Network | Dealing with overfitting
AssemblyAI
Add speech recognition to your Streamlit apps in 5 minutes
AssemblyAI
Transformers for beginners | What are they and how do they work
AssemblyAI
Automatic Chapter Detection With AssemblyAI | Python Tutorial
AssemblyAI
Deep Learning Series Part 1 - What is Deep Learning?
AssemblyAI
Deep Learning Series part 2 - Why is it called “Deep Learning”?
AssemblyAI
Activation Functions In Neural Networks Explained | Deep Learning Tutorial
AssemblyAI
Deep Learning Series part 3 - Deep Learning vs. Machine Learning
AssemblyAI
Deep Learning Series part 4 - Why is Deep Learning better for NLP?
AssemblyAI
Intro to Batch Normalization Part 1
AssemblyAI
Intro to Batch Normalization Part 2
AssemblyAI
Intro to Batch Normalization Part 3 - What is Normalization?
AssemblyAI
Intro to Batch Normalization Part 4
AssemblyAI
Intro to Batch Normalization Part 5
AssemblyAI
Sentiment Analysis for Earnings Calls with AssemblyAI
AssemblyAI
Summarizing my favorite podcasts with Python
AssemblyAI
Introduction to Regularization
AssemblyAI
How/Why Regularization in Neural Networks?
AssemblyAI
Getting Started With Torchaudio | PyTorch Tutorial
AssemblyAI
Types of Regularization
AssemblyAI
Tuning Alpha in L1 and L2 Regularization
AssemblyAI
Dropout Regularization
AssemblyAI
What is GPT-3 and how does it work? | A Quick Review
AssemblyAI
Backpropagation For Neural Networks Explained | Deep Learning Tutorial
AssemblyAI
Jupyter Notebooks Tutorial | How to use them & tips and tricks!
AssemblyAI
Best Free Speech-To-Text APIs and Open Source Libraries
AssemblyAI
Regularization - Early stopping
AssemblyAI
Regularization - Data Augmentation
AssemblyAI
Bias and Variance for Machine Learning | Deep Learning
AssemblyAI
Recurrent Neural Networks (RNNs) Explained - Deep Learning
AssemblyAI
What is BERT and how does it work? | A Quick Review
AssemblyAI
Introduction to Transformers
AssemblyAI
Transformers | What is attention?
AssemblyAI
Transformers | how attention relates to Transformers
AssemblyAI
Transformers | Basics of Transformers
AssemblyAI
Supervised Machine Learning Explained For Beginners
AssemblyAI
Transformers | Basics of Transformers Encoders
AssemblyAI
Transformers | Basics of Transformers I/O
AssemblyAI
How to evaluate ML models | Evaluation metrics for machine learning
AssemblyAI
Unsupervised Machine Learning Explained For Beginners
AssemblyAI
Weight Initialization for Deep Feedforward Neural Networks
AssemblyAI
Q-Learning Explained - Reinforcement Learning Tutorial
AssemblyAI
Should You Use PyTorch or TensorFlow in 2022?
AssemblyAI
What is Layer Normalization? | Deep Learning Fundamentals
AssemblyAI
I created a Python App to study FASTER
AssemblyAI
How to create your FIRST NEURAL NETWORK with TensorFlow!
AssemblyAI
Neural Networks Summary: All hyperparameters
AssemblyAI
Getting Started with OpenAI API and GPT-3 | Beginner Python Tutorial
AssemblyAI
Convert Speech-To-Text In Python in 60 seconds!
AssemblyAI
Gradient Clipping for Neural Networks | Deep Learning Fundamentals
AssemblyAI
More on: Vector Stores
View skill →Related Reads
📰
📰
📰
📰
A Production RAG Pipeline for PDFs: Relational Parsing, TOC Retrieval, Typed Answers
Towards Data Science
How to Cut RAG Token Costs 90% by Caching the Prefix
Medium · AI
How to Cut RAG Token Costs 90% by Caching the Prefix
Medium · Programming
Why Your Chunking Strategy Matters More Than Your Model
Medium · RAG
Chapters (5)
Intro
0:44
Why do we need vector databases
1:29
Vector embeddings and indexes
2:58
Use cases
3:45
Different vector databases
🎓
Tutor Explanation
DeepCamp AI