Retrieval decides which stored knowledge the system can actually use, since a generator reasons only over what retrieval returns.
Query transformation
The text a user submits is often not the best text to search with, so many systems rewrite the query before encoding it, which is the role of the transform.
Substrate-fixed matching
Matching is where the substrate asserts itself, because whether a stored item counts as similar to a query depends on what kind of thing that item is.
Source planning and adaptive retrieval
Before any of these matches runs, a system may have to make two prior decisions.