Skip to content

LLMMultiSelector

Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:47

A selector that uses the LLM to select a single or multiple choices from a list of choices.

new LLMMultiSelector(init): LLMMultiSelector

Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:53

LLM

MultiSelectPrompt

number

BaseOutputParser<StructuredOutput<Answer[]>>

LLMMultiSelector

BaseSelector.constructor

llm: LLM

Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:48


prompt: MultiSelectPrompt

Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:49


maxOutputs: number

Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:50


outputParser: BaseOutputParser<StructuredOutput<Answer[]>>

Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:51

select(choices, query): Promise<SelectorResult>

Defined in: .build/typescript/packages/llamaindex/src/selectors/base.ts:27

MetadataType[]

QueryType

Promise<SelectorResult>

BaseSelector.select


_getPrompts(): object

Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:67

object

prompt: MultiSelectPrompt

BaseSelector._getPrompts


_updatePrompts(prompts): void

Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:71

MultiSelectPrompt

void

BaseSelector._updatePrompts


protected _getPromptModules(): ModuleRecord

Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:77

Return a dictionary of sub-modules within the current module that also implement PromptMixin (so that their prompts can also be get/set).

Can be blank if no sub-modules.

ModuleRecord

BaseSelector._getPromptModules


_select(choices, query): Promise<SelectorResult>

Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:86

Selects a single choice from a list of choices.

ToolMetadataOnlyDescription[]

QueryBundle

Promise<SelectorResult>

BaseSelector._select


asQueryComponent(): unknown

Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:114

unknown