What is TF-IDF?
TF-IDF weighs terms by how important they are in a document and how rare they are across the corpus.
Use these to explain local retrieval as a serious engineering tool, not a toy.
TF-IDF weighs terms by how important they are in a document and how rare they are across the corpus.
SVD compresses high-dimensional sparse TF-IDF vectors into lower-dimensional latent vectors that capture broader word-pattern structure.
Exact terms, IDs, error codes, product names, policy numbers, and domains where vocabulary overlap matters.
Paraphrase, multilingual search, deep semantics, context, negation, and vocabulary mismatch.
They are transparent, private, cheap, dependency-light, and excellent for teaching retrieval mechanics.
Tokenizer, cleaning rules, vocabulary, IDF values, SVD projection, corpus version, and index release.
Too much compression can blur rare but important terms and make distinct documents look too similar.
Inspect query tokens, missing tokens, matched terms, top weighted terms, scores, and whether cleaning removed important identifiers.
TF-IDF can be a baseline, fallback, exact-term engine, or hybrid partner with neural retrieval.
Use golden queries split by exact-term, paraphrase, stale-content, and domain-specific cases. Track Recall@k, MRR, and failure labels.