Skip to content

ContextRetriever

reference
1 min readUpdated

Kind: Class

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

Methods

MethodSignatureReturns
retrieveForDocumentretrieveForDocument(plan: DocumentPlan, featureIds: string[])RetrievedContext

Where it refuses work

  • ContextRetriever stops the work with an early return when plan.sourceChunkId.
  • ContextRetriever stops the work with an early return when !featureIds || featureIds.length === 0.
  • ContextRetriever stops the work with an early return when chunkCounts.size === 0.
  • ContextRetriever stops the work with an early return when remainingBudget <= 50.
  • ContextRetriever stops the work with an early return when lines.length === 1.

Was this page helpful?

Download as PDF