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" | "temperature" | "maxTokens" | keyof OpenAIAuth | "useCoT" | "input" | "language" |
Parameters
Name | Type |
---|---|
args | { [K in "model" | "temperature" | "maxTokens" | 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
>>>