How Semantic Search Actually Works: A Tiny Search Engine You Can Run in This Tab
A from-first-principles walk through vector search: build a real TF-IDF and cosine-similarity search engine that runs live in the browser, see exactly where lexical search fails on synonyms, and understand precisely what neural embeddings change about the picture — with real code for generating and comparing actual embeddings.