# Retrieval Augmented Generation
image
{pause up} # The Retriever
image
{pause up}
image
{pause up}
image
{pause up} {#rag}
image
{pause up}
image some of the snippets retrieved from the vector database are not always relevant or of good quality, e.g. the contents pages of a book {pause .block #solution} > **Solution?** > > {pause focus-at-unpause=solution} > Add another **LLM** of course!
{pause up} # Reranker
image
{pause up} A common reranking model is the cross encoder:
image
We plug this reranking model into the rag pipeline... {pause up-at-unpause=rag}