Share a source index across each pipeline run
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user