Encoder-Only Transformers (like BERT) for RAG, Clearly Explained!!! @statquest
Encoder-Only Transformers (like BERT) for RAG, Clearly Explained!!!  @statquest
Uploaded November 2024 | Updated September 2026, 1 week ago
Encoder-Only Transformers are the backbone for RAG (retrieval augmented generation), sentiment analysis and classification problems, and clustering. This StatQuest covers the main ideas of how these powerhouses do what they do so well, making sure each step is clearly explained!

NOTE: If you'd like to learn more details about the various components mentioned in the video, check out these 'Quests:

Transformers: youtu.be/zxQyTK8quyY
Decoder-Only Transformers: youtu.be/bQ5BoolX9Ag
The Matrix Math Behind Transformers: youtu.be/KphmOJnLAdI
Coding a Decoder-Only Transformer from Scratch in PyTorch: youtu.be/C9QSpl5nmrY

Word Embedding: youtu.be/viZrOnJclY0
Logistic Regression: youtu.be/yIYKR4sgzI8

For a complete index of all the StatQuest videos, check out:
statquest.org/video-index

If you'd like to support StatQuest, please consider...

Patreon: patreon.com/statquest
...or...
YouTube Membership: youtube.com/channel/UCtYLUTtgS3k1Fg4y5tAhLbw/join

...buying one of my books, a study guide, a t-shirt or hoodie, or a song from the StatQuest store...
statquest.org/statquest-store

...or just donating to StatQuest!
paypal.me/statquest

Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
twitter.com/joshuastarmer

0:00 Awesome song and introduction
3:30 Word Embedding
11:15 Positional Encoding
12:39 Attention
15:17 Applications of Encoder-Only Transformers
16:19 RAG (Retrieval-Augmented Generation)

#StatQuest #transformers
Encoder-Only Transformers (like BERT) for RAG, Clearly Explained!!!Backpropagation Details Pt. 2: Going bonkers with The Chain RuleXGBoost in Python from Start to FinishA Gentle Introduction to Machine LearningGaussian Naive Bayes, Clearly Explained!!!p-hacking: What it is and how to avoid it!Neural Networks Part 8: Image Classification with Convolutional Neural Networks (CNNs)SaturdayNeural Networks Pt. 2: Backpropagation Main IdeasThe Binomial Distribution and Test, Clearly Explained!!!Deviance ResidualsHow to calculate p-values
StatQuest with Josh Starmer |

Encoder-Only Transformers (like BERT) for RAG, Clearly Explained!!!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER