Class: RelevancyEvaluator
Extends
Implements
BaseEvaluator
Constructors
new RelevancyEvaluator()
new RelevancyEvaluator(
params
?):RelevancyEvaluator
Parameters
• params?: RelevancyParams
Returns
Overrides
Defined in
packages/llamaindex/src/evaluation/Relevancy.ts:32
Methods
_getPromptModules()
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
Overrides
Defined in
packages/llamaindex/src/evaluation/Relevancy.ts:42
_getPrompts()
_getPrompts():
object
Returns
object
evalTemplate
evalTemplate:
RelevancyEvalPrompt
refineTemplate
refineTemplate:
RelevancyRefinePrompt
Overrides
Defined in
packages/llamaindex/src/evaluation/Relevancy.ts:46
_updatePrompts()
_updatePrompts(
prompts
):void
Parameters
• prompts
• prompts.evalTemplate: RelevancyEvalPrompt
• prompts.refineTemplate: RelevancyRefinePrompt
Returns
void
Overrides
Defined in
packages/llamaindex/src/evaluation/Relevancy.ts:53