Properties
embedFn
embedFn: ((texts) => Promise<number[][]>)
Type declaration
- (texts): Promise<number[][]>
Returns Promise<number[][]>
Optional supportThreshold
supportThreshold?: number
Optional unverifiableThreshold
unverifiableThreshold?: number
Optional nliFn
nliFn?: ((premise, hypothesis) => Promise<{
label: "neutral" | "entailment" | "contradiction";
score: number;
}>)
Type declaration
- (premise, hypothesis): Promise<{
label: "neutral" | "entailment" | "contradiction";
score: number;
}> Parameters
- premise: string
- hypothesis: string
Returns Promise<{
label: "neutral" | "entailment" | "contradiction";
score: number;
}>
Optional extractClaims
extractClaims?: ((text) => Promise<string[]>)
Type declaration
Returns Promise<string[]>
Configuration for CitationVerifier.