Skip to content

QualityScorer

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-10-generation/quality-scorer.ts

Methods

MethodSignatureReturns
scoreAllscoreAll(documents: GeneratedDocument[], plans: DocumentPlan[], entities: Entity[], moduleAreas: string[])QualityScore[]
scoreDocumentscoreDocument(doc: GeneratedDocument, plan: DocumentPlan, entities: Entity[], moduleAreas: string[])QualityScore

Where it refuses work

  • QualityScorer stops the work with an early return when words < 50.
  • QualityScorer stops the work with an early return when !plan.
  • QualityScorer stops the work with an early return when plannedCount === 0.
  • QualityScorer stops the work with an early return when !plan || !entities || entities.length === 0.
  • QualityScorer stops the work with an early return when requiredIds.size === 0.
  • QualityScorer stops the work with an early return when relevantEntities.length === 0.

Was this page helpful?

Download as PDF