Share a source index across each pipeline run

This commit is contained in:
2026-11-26 01:34:51 +00:00
parent 4b03a439cb
commit 6345727601
10 changed files with 127 additions and 13 deletions

View File

@@ -112,11 +112,13 @@ type PreparationLimit[T any] struct {
func (PreparationLimit[T]) preparedOperation() {}
func (PreparationLimit[T]) operationType(T) {}
// ExtractionInput contains domain inputs only. Its source, chunk, references,
// and metadata follow the existing detached request boundaries; a preparation
// that retains mutable data must own the data it may modify.
// ExtractionInput contains domain inputs only. SourceIndex optionally borrows a
// read-only index of the complete Source, not just the current chunk. Callers
// providing an index must ensure it describes Source. A preparation that retains
// mutable request data must own the data it may modify.
type ExtractionInput struct {
Source *source.SourceDocument
SourceIndex *source.DocumentIndex
Chunk *source.Chunk
AmbientContext map[string]any
SourceInput LLMInputMaterial