Class: abstract
BaseSelector
Extends
Extended by
Constructors
new BaseSelector()
new BaseSelector():
BaseSelector
Returns
Inherited from
Methods
_getPromptModules()
abstract
protected
_getPromptModules():ModuleRecord
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
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:69
_getPrompts()
abstract
protected
_getPrompts():PromptsRecord
Returns
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:60
_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()
abstract
protected
_updatePrompts(prompts
):void
Parameters
• prompts: PromptsRecord
Returns
void
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:61
getPrompts()
getPrompts():
PromptsRecord
Returns
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:58
select()
select(
choices
,query
):Promise
<SelectorResult
>
Parameters
• choices: MetadataType
[]
• query: QueryType
Returns
Promise
<SelectorResult
>
Defined in
packages/llamaindex/src/selectors/base.ts:27
updatePrompts()
updatePrompts(
prompts
):void
Parameters
• prompts: PromptsRecord
Returns
void
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:59
validatePrompts()
validatePrompts(
promptsDict
,moduleDict
):void
Parameters
• promptsDict: PromptsRecord
• moduleDict: ModuleRecord
Returns
void
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:57