NLTK achieves lazy indexing through its `StreamBackedCorpusView` class, which doesn't load entire corpora into memory. Instead, it uses a 'block reader' function to process data in chunks and maintains a partial, lazily built mapping between token indices and file positions for efficient random access.