Complete source index reuse across extractors
This commit is contained in:
@@ -85,7 +85,7 @@ func (e *Extractor) PrepareExtraction(ctx context.Context, req contracts.Extract
|
||||
return nil, extractorErrorf("resolve enemy-event grounding: %w", err)
|
||||
}
|
||||
|
||||
order := shared.NewSourceRefOrder(req.Source)
|
||||
order := shared.NewSourceRefOrderForSource(req.Source, req.SourceIndex)
|
||||
sourceID := req.Source.ID
|
||||
materials := shared.PromptInputs(sourceInput, req.References)
|
||||
for name, material := range grounding.PromptInputs() {
|
||||
|
||||
Reference in New Issue
Block a user