LLM caller for generating summaries. Takes a prompt string and returns the LLM completion.
The full prompt including chain-of-thought instructions.
The generated summary text.
Embedding manager for generating embeddings for clustering and storage.
Vector store for persisting all layers of the tree.
Optional collectionCollection name in the vector store. Default: 'raptor-tree'.
Optional clusterNumber of chunks per cluster. Default: 8.
Optional maxMaximum tree depth (layers above leaf). Default: 4.
Optional minMinimum number of chunks required to form a new summary layer. Default: 3.
Configuration for the RAPTOR tree.
Interface
RaptorTreeConfig