Skip to main content

Interface: CitationVerifierConfig

Defined in: packages/agentos/src/rag/citation/types.ts:57

Configuration for CitationVerifier.

Properties

embedFn()

embedFn: (texts) => Promise<number[][]>

Defined in: packages/agentos/src/rag/citation/types.ts:59

Batch embedding function: texts → embedding vectors.

Parameters

texts

string[]

Returns

Promise<number[][]>


extractClaims()?

optional extractClaims: (text) => Promise<string[]>

Defined in: packages/agentos/src/rag/citation/types.ts:70

Optional claim extractor. Falls back to sentence splitting.

Parameters

text

string

Returns

Promise<string[]>


nliFn()?

optional nliFn: (premise, hypothesis) => Promise<{ label: "neutral" | "entailment" | "contradiction"; score: number; }>

Defined in: packages/agentos/src/rag/citation/types.ts:65

Optional NLI function for contradiction detection.

Parameters

premise

string

hypothesis

string

Returns

Promise<{ label: "neutral" | "entailment" | "contradiction"; score: number; }>


supportThreshold?

optional supportThreshold: number

Defined in: packages/agentos/src/rag/citation/types.ts:61

Cosine similarity threshold for "supported". Default: 0.6


unverifiableThreshold?

optional unverifiableThreshold: number

Defined in: packages/agentos/src/rag/citation/types.ts:63

Below this threshold, claim is "unverifiable". Default: 0.3