Namespace: AnswerRelevancy
Scores the relevancy of the generated answer to the given question. Answers with incomplete, redundant or unnecessary information are penalized.
Functions
partial
▸ partial<T
>(args
): Scorer
<string
, Omit
<{ context?
: string
| string
[] ; input?
: string
; model?
: string
} & { maxTokens?
: number
; temperature?
: number
} & OpenAIAuth
& { strictness?
: number
}, T
> & Partial
<Pick
<{ context?
: string
| string
[] ; input?
: string
; model?
: string
} & { maxTokens?
: number
; temperature?
: number
} & OpenAIAuth
& { strictness?
: number
}, T
>>>
Type parameters
Name | Type |
---|---|
T | extends "model" | "temperature" | "maxTokens" | keyof OpenAIAuth | "input" | "context" | "strictness" |
Parameters
Name | Type |
---|---|
args | { [K in "model" | "temperature" | "maxTokens" | keyof OpenAIAuth | "input" | "context" | "strictness"]: (Object & Object & OpenAIAuth & Object)[K] } |
Returns
Scorer
<string
, Omit
<{ context?
: string
| string
[] ; input?
: string
; model?
: string
} & { maxTokens?
: number
; temperature?
: number
} & OpenAIAuth
& { strictness?
: number
}, T
> & Partial
<Pick
<{ context?
: string
| string
[] ; input?
: string
; model?
: string
} & { maxTokens?
: number
; temperature?
: number
} & OpenAIAuth
& { strictness?
: number
}, T
>>>