AI engineering glossary · RAG vector search

What is RAPTOR?

RAPTOR: A technique that recursively clusters chunks, summarises each cluster and repeats to form a tree of summaries, so retrieval can draw on both fine details and high-level themes. It helps with questions about whole long documents.

Level: advancedTopic: RAG vector search

RAPTOR: an example

Leaf chunks of a book are summarised per chapter, then chapters per part, and the query can match any level.

Related terms

More RAG vector search terms

Where you learn it

RAPTOR is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.