Feat: Allows the extractor operator's prompt to reference the output of an upstream operator #9869 (#10279)

### What problem does this PR solve?

Feat: Allows the extractor operator's prompt to reference the output of
an upstream operator #9869

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-09-25 15:24:24 +08:00
committed by GitHub
parent d907e79893
commit a1147ce609
14 changed files with 161 additions and 122 deletions

View File

@ -119,7 +119,7 @@ export enum Operator {
Tokenizer = 'Tokenizer',
Splitter = 'Splitter',
HierarchicalMerger = 'HierarchicalMerger',
Context = 'Context',
Extractor = 'Extractor',
}
export const SwitchLogicOperatorOptions = ['and', 'or'];
@ -291,7 +291,7 @@ export const initialHierarchicalMergerValues = {
export const initialContextValues = {
...initialLlmBaseValues,
field_name: [ContextGeneratorFieldName.Summary],
field_name: ContextGeneratorFieldName.Summary,
outputs: {},
};
@ -327,7 +327,7 @@ export const NodeMap = {
[Operator.Tokenizer]: 'tokenizerNode',
[Operator.Splitter]: 'splitterNode',
[Operator.HierarchicalMerger]: 'hierarchicalMergerNode',
[Operator.Context]: 'contextNode',
[Operator.Extractor]: 'contextNode',
};
export enum BeginQueryType {