Skip to main content

Class: abstract BaseSelector

Extends

Extended by

Constructors

new BaseSelector()

new BaseSelector(): BaseSelector

Returns

BaseSelector

Inherited from

PromptMixin.constructor

Methods

_getPromptModules()

protected _getPromptModules(): Record<string, any>

Returns

Record<string, any>

Inherited from

PromptMixin._getPromptModules

Defined in

packages/llamaindex/src/prompts/Mixin.ts:83


_getPrompts()

protected _getPrompts(): PromptsDict

Returns

PromptsDict

Inherited from

PromptMixin._getPrompts

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

PromptMixin._updatePrompts

Defined in

packages/llamaindex/src/prompts/Mixin.ts:87


getPrompts()

getPrompts(): PromptsDict

Returns all prompts from the mixin and its modules

Returns

PromptsDict

Inherited from

PromptMixin.getPrompts

Defined in

packages/llamaindex/src/prompts/Mixin.ts:27


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(promptsDict): void

Updates the prompts in the mixin and its modules

Parameters

promptsDict: PromptsDict

Returns

void

Inherited from

PromptMixin.updatePrompts

Defined in

packages/llamaindex/src/prompts/Mixin.ts:48


validatePrompts()

validatePrompts(promptsDict, moduleDict): void

Validates the prompt keys and module keys

Parameters

promptsDict: PromptsDict

moduleDict: ModuleDict

Returns

void

Inherited from

PromptMixin.validatePrompts

Defined in

packages/llamaindex/src/prompts/Mixin.ts:10