Class: abstract
BaseSelector
Extends
Extended by
Constructors
new BaseSelector()
new BaseSelector():
BaseSelector
Returns
Inherited from
Methods
_getPromptModules()
protected
_getPromptModules():Record
<string
,any
>
Returns
Record
<string
, any
>
Inherited from
Defined in
packages/llamaindex/src/prompts/Mixin.ts:83
_getPrompts()
protected
_getPrompts():PromptsDict
Returns
PromptsDict
Inherited from
Defined in
packages/llamaindex/src/prompts/Mixin.ts:79
_select()
abstract
_select(choices
,query
):Promise
<SelectorResult
>
Parameters
• choices: ToolMetadataOnlyDescription
[]
• query: QueryType
Returns
Promise
<SelectorResult
>
Defined in
packages/llamaindex/src/selectors/base.ts:32
_updatePrompts()
protected
_updatePrompts(promptsDict
):void
Parameters
• promptsDict: PromptsDict
Returns
void
Inherited from
Defined in
packages/llamaindex/src/prompts/Mixin.ts:87
getPrompts()
getPrompts():
PromptsDict
Returns all prompts from the mixin and its modules
Returns
PromptsDict