Re-ranking in hybrid RAG
In Chapter 8, in addition to our hybrid RAG approach, we also introduced a form of re-ranking, another common advanced RAG technique. After the semantic search and keyword searches complete their retrieval, we re-rank the results based on the rankings across both sets depending on if they appear in both and where they ranked initially.
So, you have already stepped through three RAG techniques, including two advanced techniques! But this chapter is focused on bringing you three more advanced approaches: query expansion, query decomposition, and MM-RAG. We will also provide you a list of many more approaches you can explore, but we sorted through and picked out these three advanced RAG techniques because of their application in a wide variety of RAG applications.
In our first code lab in this chapter, we will talk about query expansion.