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
evaluate()
evaluate(
__namedParameters
):Promise
<EvaluationResult
>
Parameters
• __namedParameters: EvaluatorParams
Returns
Promise
<EvaluationResult
>
Implementation of
BaseEvaluator.evaluate
Defined in
packages/llamaindex/src/evaluation/Relevancy.ts:65
evaluateResponse()
evaluateResponse(
__namedParameters
):Promise
<EvaluationResult
>
Parameters
• __namedParameters: EvaluatorResponseParams
Returns
Promise
<EvaluationResult
>
Implementation of
BaseEvaluator.evaluateResponse
Defined in
packages/llamaindex/src/evaluation/Relevancy.ts:125
getPrompts()
getPrompts():
PromptsRecord
Returns
Inherited from
Defined in
packages/core/prompts/dist/prompts/index.d.ts:58
updatePrompts()
updatePrompts(
prompts
):void
Parameters
• prompts: PromptsRecord
Returns
void
Inherited from
Defined in
packages/core/prompts/dist/prompts/index.d.ts:59
validatePrompts()
validatePrompts(
promptsDict
,moduleDict
):void
Parameters
• promptsDict: PromptsRecord
• moduleDict: ModuleRecord
Returns
void
Inherited from
Defined in
packages/core/prompts/dist/prompts/index.d.ts:57