Namespace: Translation
Test whether an output
is as good of a translation of the input
in the specified language
as an expert (expected
) value.
Functions
partial
▸ partial<T
>(args
): Scorer
<string
, Omit
<LLMClassifierArgs
<{ input
: string
; language
: string
}>, T
> & Partial
<Pick
<LLMClassifierArgs
<{ input
: string
; language
: string
}>, T
>>>
Type parameters
Name | Type |
---|---|
T | extends "model" | "maxTokens" | "temperature" | keyof OpenAIAuth | "useCoT" | "input" | "language" |
Parameters
Name | Type |
---|---|
args | { [K in "model" | "maxTokens" | "temperature" | keyof OpenAIAuth | "useCoT" | "input" | "language"]: LLMClassifierArgs<Object>[K] } |
Returns
Scorer
<string
, Omit
<LLMClassifierArgs
<{ input
: string
; language
: string
}>, T
> & Partial
<Pick
<LLMClassifierArgs
<{ input
: string
; language
: string
}>, T
>>>