Class: SummaryIndexLLMRetriever
LLM retriever for SummaryIndex which lets you select the most relevant chunks.
Implements
Constructors
new SummaryIndexLLMRetriever()
new SummaryIndexLLMRetriever(
index
,choiceSelectPrompt
?,choiceBatchSize
?,formatNodeBatchFn
?,parseChoiceSelectAnswerFn
?,serviceContext
?):SummaryIndexLLMRetriever
Parameters
• index: SummaryIndex
• choiceSelectPrompt?: ChoiceSelectPrompt
• choiceBatchSize?: number
= 10
• formatNodeBatchFn?: NodeFormatterFunction
• parseChoiceSelectAnswerFn?: ChoiceSelectParserFunction
• serviceContext?: ServiceContext
Returns
Defined in
packages/llamaindex/src/indices/summary/index.ts:312
Properties
choiceBatchSize
choiceBatchSize:
number
Defined in
packages/llamaindex/src/indices/summary/index.ts:306
choiceSelectPrompt
choiceSelectPrompt:
ChoiceSelectPrompt
Defined in
packages/llamaindex/src/indices/summary/index.ts:305
formatNodeBatchFn
formatNodeBatchFn:
NodeFormatterFunction
Defined in
packages/llamaindex/src/indices/summary/index.ts:307
index
index:
SummaryIndex
Defined in
packages/llamaindex/src/indices/summary/index.ts:304
parseChoiceSelectAnswerFn
parseChoiceSelectAnswerFn:
ChoiceSelectParserFunction
Defined in
packages/llamaindex/src/indices/summary/index.ts:308
serviceContext?
optional
serviceContext:ServiceContext
Deprecated
to be deprecated soon
Implementation of
Defined in
packages/llamaindex/src/indices/summary/index.ts:309
Methods
retrieve()
retrieve(
__namedParameters
):Promise
<NodeWithScore
<Metadata
>[]>
Parameters
• __namedParameters: RetrieveParams
Returns
Promise
<NodeWithScore
<Metadata
>[]>