Share a source index across each pipeline run
This commit is contained in:
@@ -61,6 +61,11 @@ capture, or terminal mode. The runner binds those privately; direct callers can
|
||||
supply a [core execution context](../../internal/framework/pipeline/operation.go)
|
||||
and preparation function to the same executor.
|
||||
|
||||
Extraction receives an optional read-only index of the complete source document.
|
||||
The runner shares one index across the run's extraction jobs and cache decoders;
|
||||
standalone callers may omit it or supply an index for their source. It is not a
|
||||
chunk index, and request-local mutable data remains separately owned.
|
||||
|
||||
- Return a deterministic operation with one candidate when no model is needed.
|
||||
Core assesses it once; there is no native request or synthetic cache key.
|
||||
- Return a native operation containing the selected `promptkit.RunRequest`,
|
||||
|
||||
@@ -254,6 +254,13 @@ the algorithm to establish reduced work; no wall-clock gate.
|
||||
|
||||
## Stage 6 — Supply One Run-Owned Source Index
|
||||
|
||||
**Completed.** The runner builds one whole-source index after validation, shares
|
||||
it with extraction jobs and cache decoders, and retains lazy local cache indexing
|
||||
for standalone construction. The D&D ordering constructor accepts an optional
|
||||
index. Tests cover jobs across steps, separate same-ID layouts, cache decoding
|
||||
and omitted-index use. The specified package tests pass. Extractor migration and
|
||||
the final CAT-005 disposition remain in the following stages.
|
||||
|
||||
**Coverage:** CAT-005 framework. **Prerequisites:** none.
|
||||
|
||||
Add `ExtractionInput.SourceIndex`, runner initialization, extraction passing,
|
||||
|
||||
Reference in New Issue
Block a user