🦖RAPTOR🦖 Implementation Code Walk-through

Angelina Yang
2 min readApr 22, 2024

Last week we talked about RAPTOR — an advanced RAG technique that features recursive hierarchical clustering. If you would like to revisit:

🦖RAPTOR🦖 for Advanced RAG

“Retrieval-augmented language models can better adapt to changes in world state and incorporate long-tail knowledge.” Yet, the majority of existing RAG methodologies only retrieve short, contiguous chunks from a retrieval corpus, which limits the holistic understanding of the document’s overall context.

Read full story

Today, we’ll share an example implementation. To make it simple, we recorded it:

Check it out in the video below!👇

And here’s the code for your entertainment:

Check out the Colab notebook!

Subscribe to Our YouTube Channel!

Subscribe our channel!

We are kicking off our YouTube channel in the new year, and we invite you on board as we walk you through some of…

--

--