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():Record
<string
,any
>
Returns
Record
<string
, any
>
Inherited from
Defined in
packages/llamaindex/src/prompts/Mixin.ts:83
_getPrompts()
_getPrompts():
object
Returns
object
evalTemplate()
evalTemplate: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.context: string
• __namedParameters.query: string
Returns
string
refineTemplate()
refineTemplate: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.contextMsg: string
• __namedParameters.existingAnswer: string
• __namedParameters.query: string
Returns
string