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.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LLMMultiSelector(
init
):LLMMultiSelector
Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:53
Parameters
Section titled “Parameters”LLM
prompt?
Section titled “prompt?”MultiSelectPrompt
maxOutputs?
Section titled “maxOutputs?”number
outputParser?
Section titled “outputParser?”BaseOutputParser
<StructuredOutput
<Answer
[]>>
Returns
Section titled “Returns”LLMMultiSelector
Overrides
Section titled “Overrides”Properties
Section titled “Properties”llm:
LLM
Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:48
prompt
Section titled “prompt”prompt:
MultiSelectPrompt
Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:49
maxOutputs
Section titled “maxOutputs”maxOutputs:
number
Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:50
outputParser
Section titled “outputParser”outputParser:
BaseOutputParser
<StructuredOutput
<Answer
[]>>
Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:51
Methods
Section titled “Methods”select()
Section titled “select()”select(
choices
,query
):Promise
<SelectorResult
>
Defined in: .build/typescript/packages/llamaindex/src/selectors/base.ts:27
Parameters
Section titled “Parameters”choices
Section titled “choices”MetadataType
[]
QueryType
Returns
Section titled “Returns”Promise
<SelectorResult
>
Inherited from
Section titled “Inherited from”_getPrompts()
Section titled “_getPrompts()”_getPrompts():
object
Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:67
Returns
Section titled “Returns”object
prompt
Section titled “prompt”prompt:
MultiSelectPrompt
Overrides
Section titled “Overrides”BaseSelector._getPrompts
_updatePrompts()
Section titled “_updatePrompts()”_updatePrompts(
prompts
):void
Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:71
Parameters
Section titled “Parameters”prompts
Section titled “prompts”prompt
Section titled “prompt”MultiSelectPrompt
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”BaseSelector._updatePrompts
_getPromptModules()
Section titled “_getPromptModules()”
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.
Returns
Section titled “Returns”ModuleRecord
Overrides
Section titled “Overrides”BaseSelector._getPromptModules
_select()
Section titled “_select()”_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.
Parameters
Section titled “Parameters”choices
Section titled “choices”QueryBundle
Returns
Section titled “Returns”Promise
<SelectorResult
>
Overrides
Section titled “Overrides”asQueryComponent()
Section titled “asQueryComponent()”asQueryComponent():
unknown
Defined in: .build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:114
Returns
Section titled “Returns”unknown