BERT
A Google (2018) encoder model built on Transformer. Reads text from both sides and thus understands context well — but cannot generate text.
What Sets It Apart from GPT
| BERT | GPT | |
|---|---|---|
| Type | Encoder-only | Decoder-only |
| Reads | The entire phrase at once, in both directions | Left to right |
| Can do | Understand text | Generate text |
| Tasks | Search, classification | Dialogs, generation |
Where It Is Used
- embeddings for RAG;
- search and ranking;
- text classification;
- entity extraction.