The MLnotes Newsletter

The MLnotes Newsletter

Share this post

The MLnotes Newsletter
The MLnotes Newsletter
🦖RAPTOR🦖 Implementation Code Walk-through

🦖RAPTOR🦖 Implementation Code Walk-through

Angelina Yang's avatar
Mehdi Allahyari's avatar
Angelina Yang
and
Mehdi Allahyari
Mar 25, 2024
∙ Paid

Share this post

The MLnotes Newsletter
The MLnotes Newsletter
🦖RAPTOR🦖 Implementation Code Walk-through
Share

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

Angelina Yang and Mehdi Allahyari
·
March 21, 2024
🦖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:

Keep reading with a 7-day free trial

Subscribe to The MLnotes Newsletter to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 MLnotes
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share