Reuse source indexes in registry extraction

This commit is contained in:
2026-11-26 01:36:25 +00:00
parent 6345727601
commit f789e41faf
10 changed files with 25 additions and 8 deletions

View File

@@ -58,7 +58,7 @@ func (e *Extractor) PrepareExtraction(ctx context.Context, req contracts.Extract
if err != nil {
return nil, extractorErrorf("%w", err)
}
order := shared.NewSourceRefOrder(req.Source)
order := shared.NewSourceRefOrderForSource(req.Source, req.SourceIndex)
sourceID := req.Source.ID
materials := shared.PromptInputs(sourceInput, req.References)