This talk, presented in a series for Doug Turnbull and Trey Grainger's class on AI-powered search, explains ways to use the bag-of-documents model to align query and document representations and thus improve query understanding and retrieval. It also links to Github and Hugging Face resources that you can use to explore and apply the approach yourself.