AI Hints
Home›NLP Tutorial›Review: Language Skills
NLP · Lesson 95 of 106

Review: Modern NLP

Embeddings, transformers, and RAG.

⏱ 2 min read▶ Video at 2:40:11🎓 Free
Watch this lesson in the NLP courseWatch on YouTube ↗Full NLP course

Now the modern toolkit. This round covers embeddings, retrieval, and working with language models.

Review: Modern NLP
From the video: Review: Modern NLP
  • The modern toolkit
  • Embeddings and retrieval
  • Language models

Recap: modern tools

Embeddings place meaning in a space of numbers. Attention lets each word look at the others. RAG retrieves first, then generates. Chunking decides what can be found. Hybrid search combines meaning and keywords. Rerankers read the question and document together. And citations plus refusal make answers trustworthy.

Embeddingsmeaning as numbers
RAGretrieve, then generate
Hybridmeaning plus keywords
Citationstrust through evidence

Question 1

Question 1. Clustering tickets scored 0.05 with word counts and 1.0 with embeddings. Why? A, More data. B, Short texts share few words, but similar meanings. C, A better algorithm. D, Random luck. Pause and choose. The answer is B. The algorithm was the same.

Quick check
Clustering tickets scored 0.05 with word counts and 1.0 with embeddings. Why?

Question 2

Question 2. A customer asks, can I change it? What do you do before searching? A, Search as written. B, Rewrite it to stand alone. C, Refuse. D, Translate it. Pause and choose. The answer is B. Follow-ups depend on context.

Quick check
A customer asks, can I change it? What do you do before searching?

Question 3

Question 3. Why rerank after vector search? A, To save disk. B, A reranker reads query and document together. C, To add noise. D, To remove citations. Pause and choose. The answer is B. Embeddings are compared separately.

Quick check
Why rerank after vector search?

Question 4

Question 4. What's the best test of a RAG system? A, A question with no answer in the sources. B, Its speed. C, Its colour. D, A greeting. Pause and choose. The answer is A. Does it refuse, or invent?

Quick check
What's the best test of a RAG system?

Question 5

Question 5. Why can't BLEU judge a single sentence well? A, It is slow. B, Same meaning in different words can score zero. C, It needs a GPU. D, It only works on French. Pause and choose. The answer is B. It counts matching phrases.

Quick check
Why can't BLEU judge a single sentence well?

Question 6

Question 6. How do you stop a bot guessing? A, Higher temperature. B, A similarity threshold, then hand over. C, Longer prompts. D, More emojis. Pause and choose. The answer is B. I don't know is a good answer.

Quick check
How do you stop a bot guessing?

Summary

Next, doing this in the real world.

Key takeaways
  • Representation matters most
  • Rewrite, retrieve, rerank
  • Test unanswerable questions
Next up: Review: NLP in the Real World — costs, tests, and people