Kind: Class
Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-10-generation/quality-scorer.ts
Methods
| Method | Signature | Returns |
|---|---|---|
scoreAll | scoreAll(documents: GeneratedDocument[], plans: DocumentPlan[], entities: Entity[], moduleAreas: string[]) | QualityScore[] |
scoreDocument | scoreDocument(doc: GeneratedDocument, plan: DocumentPlan, entities: Entity[], moduleAreas: string[]) | QualityScore |
Where it refuses work
QualityScorerstops the work with an early return whenwords < 50.QualityScorerstops the work with an early return when!plan.QualityScorerstops the work with an early return whenplannedCount === 0.QualityScorerstops the work with an early return when!plan || !entities || entities.length === 0.QualityScorerstops the work with an early return whenrequiredIds.size === 0.QualityScorerstops the work with an early return whenrelevantEntities.length === 0.
Was this page helpful?