Class: ListIndexLLMRetriever
LLM retriever for ListIndex.
Implements
Constructors
constructor
• new ListIndexLLMRetriever(index
, choiceSelectPrompt?
, choiceBatchSize?
, formatNodeBatchFn?
, parseChoiceSelectAnswerFn?
, serviceContext?
)
Parameters
Name | Type | Default value |
---|---|---|
index | ListIndex | undefined |
choiceSelectPrompt? | SimplePrompt | undefined |
choiceBatchSize | number | 10 |
formatNodeBatchFn? | NodeFormatterFunction | undefined |
parseChoiceSelectAnswerFn? | ChoiceSelectParserFunction | undefined |
serviceContext? | ServiceContext | undefined |
Defined in
indices/list/ListIndexRetriever.ts:64
Properties
choiceBatchSize
• choiceBatchSize: number
Defined in
indices/list/ListIndexRetriever.ts:59
choiceSelectPrompt
• choiceSelectPrompt: SimplePrompt
Defined in
indices/list/ListIndexRetriever.ts:58
formatNodeBatchFn
• formatNodeBatchFn: NodeFormatterFunction
Defined in
indices/list/ListIndexRetriever.ts:60
index
• index: ListIndex
Defined in
indices/list/ListIndexRetriever.ts:57
parseChoiceSelectAnswerFn
• parseChoiceSelectAnswerFn: ChoiceSelectParserFunction
Defined in
indices/list/ListIndexRetriever.ts:61
serviceContext
• serviceContext: ServiceContext
Defined in
indices/list/ListIndexRetriever.ts:62
Methods
getServiceContext
▸ getServiceContext(): ServiceContext
Returns
Implementation of
BaseRetriever.getServiceContext
Defined in
indices/list/ListIndexRetriever.ts:127
retrieve
▸ retrieve(query
, parentEvent?
): Promise
<NodeWithScore
[]>
Parameters
Name | Type |
---|---|
query | string |
parentEvent? | Event |
Returns
Promise
<NodeWithScore
[]>
Implementation of
Defined in
indices/list/ListIndexRetriever.ts:81