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?
• choiceBatchSize?: number
= 10
• formatNodeBatchFn?: NodeFormatterFunction
• parseChoiceSelectAnswerFn?: ChoiceSelectParserFunction
• serviceContext?: ServiceContext
Returns
Source
packages/llamaindex/src/indices/summary/index.ts:325
Properties
choiceBatchSize
choiceBatchSize:
number
Source
packages/llamaindex/src/indices/summary/index.ts:319
choiceSelectPrompt()
choiceSelectPrompt: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.context: undefined
| string
= ""
• __namedParameters.query: undefined
| string
= ""
Returns
string
Source
packages/llamaindex/src/indices/summary/index.ts:318
formatNodeBatchFn
formatNodeBatchFn:
NodeFormatterFunction
Source
packages/llamaindex/src/indices/summary/index.ts:320
index
index:
SummaryIndex
Source
packages/llamaindex/src/indices/summary/index.ts:317
parseChoiceSelectAnswerFn
parseChoiceSelectAnswerFn:
ChoiceSelectParserFunction
Source
packages/llamaindex/src/indices/summary/index.ts:321
serviceContext?
optional
serviceContext:ServiceContext
Implementation of
BaseRetriever
. serviceContext
Source
packages/llamaindex/src/indices/summary/index.ts:322
Methods
retrieve()
retrieve(
__namedParameters
):Promise
<NodeWithScore
<Metadata
>[]>
Parameters
• __namedParameters: RetrieveParams
Returns
Promise
<NodeWithScore
<Metadata
>[]>