Kind: Function
Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-11-verification/grounding-checker.ts
Calculate grounding score for entity mentions against known entities.
For each mention, checks if it fuzzy-matches (Jaccard >= 0.5) any known entity.
- score = matchedCount / totalMentions
- Returns 0.5 (neutral) if totalMentions === 0
Signature
tsfunction calculateGroundingScore(mentions: string[], knownEntities: string[]): GroundingScoreResult
Parameters
| Name | Type |
|---|---|
mentions | string[] |
knownEntities | string[] |
Returns: GroundingScoreResult
Was this page helpful?