Skip to content

KnowledgeCollector

reference
1 min readUpdated

Kind: Class

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

Methods

MethodSignatureReturns
collectcollect(doc: GeneratedDocument, meta: DocClassificationMeta)void
getReferencegetReference(category: MetaKnowledgeCategory)MetaCategoryReference
getAllReferencesgetAllReferences()KnowledgeReferenceStore
finalizefinalize()KnowledgeReferenceStore
getStatsgetStats()`{
totalDocsProcessed: number;
totalDocsClassified: number;
classificationFailures: number;

}` |

Where it refuses work

  • KnowledgeCollector stops the work with an early return when !entries.

When something fails

  • KnowledgeCollector handles failure in 1 place: it turns it into a return value in all 1.

Was this page helpful?

Download as PDF