AI Hints
Home›NLP Tutorial›Quizzes and Interviews
NLP · Lesson 105 of 106

Your Cheat Sheet

The whole course on one page.

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

Here's the whole course, as short as we can make it. Pause and take a screenshot of each screen. These will save you time on every future project.

Your Cheat Sheet
From the video: Your Cheat Sheet
  • The whole course, compressed
  • Pause and screenshot
  • Use on every project

Which tool for which job?

Fixed patterns, use regex. Sort text at volume, use TF-IDF and logistic regression. Few labels, use embeddings with a simple model. Find facts, use spaCy or a transformer. Search by meaning, use embeddings. Answer from documents, use RAG. Change style, fine tune.

JobTool
Fixed patternsRegex
Classify at volumeTF-IDF + logistic
Few labelsEmbeddings + logistic
Extract entitiesspaCy, transformer NER
SearchHybrid + reranker
Answer from docsRAG
Change styleFine-tune

Which metric?

Classification, read precision and recall per class, plus macro F one. Retrieval, use hit rate and MRR. RAG answers, use faithfulness and relevance. Generated text, use human review or a model judge. And for labels, use kappa.

TaskMetric
ClassificationPer-class F1, macro F1
RetrievalHit rate, MRR
RAG answersFaithfulness, relevance
GenerationHuman review, judge
LabellingCohen's kappa

The recipe

And here's the recipe. Name the job. Build a cheap baseline. Make a golden set. Try prompts, then RAG, then fine tuning. Add guardrails. Estimate your costs. Launch in stages. And keep measuring.

Name the jobsix main tasks
Baseline and golden setbefore anything clever
Prompt, RAG, fine-tunein that order
Guardrails and costbefore launch
Launch in stageskeep measuring

Summary

Three screens, and you've got the whole course. One last lesson. Let's talk about where you go next.

Key takeaways
  • Pick the right tool
  • Measure the right thing
  • Follow the recipe
Next up: Your Roadmap — what to do next