Retriever Modes#
Here we show the mapping from retriever_mode
configuration to the selected retriever class.
Note that
retriever_mode
can mean different thing for different index classes.
Vector Index#
Specifying retriever_mode
has no effect (silently ignored).
vector_index.as_retriever(...)
always returns a VectorIndexRetriever.
Summary Index#
default
: SummaryIndexRetrieverembedding
: SummaryIndexEmbeddingRetrieverllm
: SummaryIndexLLMRetriever
Tree Index#
select_leaf
: TreeSelectLeafRetrieverselect_leaf_embedding
: TreeSelectLeafEmbeddingRetrieverall_leaf
: TreeAllLeafRetrieverroot
: TreeRootRetriever
Keyword Table Index#
default
: KeywordTableGPTRetrieversimple
: KeywordTableSimpleRetrieverrake
: KeywordTableRAKERetriever
Knowledge Graph Index#
keyword
: KGTableRetrieverembedding
: KGTableRetrieverhybrid
: KGTableRetriever
Document Summary Index#
llm
: DocumentSummaryIndexLLMRetrieverembedding
: DocumentSummaryIndexEmbeddingRetrievers