
Ever searched for a word in a massive book collection?
Image: TenOfAllTrades at English Wikipedia, Public domain, via Wikimedia Commons
Ever searched for a word in a massive book collection?
Imagine you're looking for a specific word in a huge library where books are scattered everywhere.
Think of the library as a map where each word is a landmark. The inverted index is like a guide that tells you exactly where to find each word, making searches quick and efficient.
Example
If you want to find the word "apple," the guide shows you all the books (documents) where "apple" appears, without flipping through every single book.
Remember this
The inverted index is a fast-search guide for finding words in large collections.
Text adapted from Wikipedia, licensed under CC BY-SA 4.0.
paged attention (vLLM) improves serving throughput
Paged attention (vLLM) improves serving throughput by reducing latency through non-contiguous KV-cache pages, enabling faster data retrieval
LSM trees optimize: write-heavy workloads by buffering writes in memory
Ever wondered how your favorite social media app handles millions of new posts every minute?
Tensor network
Ever wondered how scientists manage massive data without endless storage?
database sharding does: splits data across machines by a partition key
Why can't you just split a huge library into smaller ones?
RAG does: retrieves relevant documents before generating to reduce hallucination
Can AI ever truly understand new information?
Matrix multiplication algorithm
Ever wondered how computers speed up multiplying huge numbers?
Swipe through 100 ML concepts daily
Open Pocket Polymath