Class: abstract
PromptMixin
Extended by
ContextChatEngine
DefaultContextGenerator
BaseQueryEngine
BaseSynthesizer
BaseRetriever
CorrectnessEvaluator
FaithfulnessEvaluator
RelevancyEvaluator
LLMQuestionGenerator
BaseSelector
Constructors
new PromptMixin()
new PromptMixin():
PromptMixin
Returns
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
Defined in
packages/core/prompts/dist/index.d.ts:77
_getPrompts()
abstract
protected
_getPrompts():PromptsRecord
Returns
Defined in
packages/core/prompts/dist/index.d.ts:68
_updatePrompts()
abstract
protected
_updatePrompts(prompts
):void
Parameters
• prompts: PromptsRecord
Returns
void
Defined in
packages/core/prompts/dist/index.d.ts:69
getPrompts()
getPrompts():
PromptsRecord
Returns
Defined in
packages/core/prompts/dist/index.d.ts:66
updatePrompts()
updatePrompts(
prompts
):void
Parameters
• prompts: PromptsRecord
Returns
void
Defined in
packages/core/prompts/dist/index.d.ts:67
validatePrompts()
validatePrompts(
promptsDict
,moduleDict
):void
Parameters
• promptsDict: PromptsRecord
• moduleDict: ModuleRecord
Returns
void
Defined in
packages/core/prompts/dist/index.d.ts:65