I spent a while working on a retrieval system for LLMs and ended up reinventing a concordance (which is like an index).
It's basically the same thing as Google's inverted index, which is how Google search works.
Nothing new under the sun :)