Kind: Class
Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-10-generation/context-retriever.ts
Methods
| Method | Signature | Returns |
|---|---|---|
retrieveForDocument | retrieveForDocument(plan: DocumentPlan, featureIds: string[]) | RetrievedContext |
Where it refuses work
ContextRetrieverstops the work with an early return whenplan.sourceChunkId.ContextRetrieverstops the work with an early return when!featureIds || featureIds.length === 0.ContextRetrieverstops the work with an early return whenchunkCounts.size === 0.ContextRetrieverstops the work with an early return whenremainingBudget <= 50.ContextRetrieverstops the work with an early return whenlines.length === 1.
Was this page helpful?