Lecture 18: Introduction to NLP and LLMs
Text representations, sparse and dense retrieval, language models, and retrieval-augmented generation
Slides
Outline
- Language ambiguity, context, and world knowledge
- Bag-of-words, TF–IDF, and word and text embeddings
- Sparse and dense information retrieval
- Next-token prediction, pretraining, post-training, and prompting
- Retrieval-augmented generation: indexing, retrieval, prompts, and answers
- Evidence checking and failure diagnosis