Skip to content

validateCitations

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/techdocs/grounded-ask.ts

Keep only citations that correspond to a retrieved source path (drop hallucinated ones).

Signature

ts
function validateCitations(answer: string, context: DocSearchHit[]): string[]

Parameters

NameType
answerstring
contextDocSearchHit[]

Returns: string[]

Was this page helpful?

Download as PDF