Feat: Change the corresponding prompt word according to the value of fieldName #9869 (#10291)

### What problem does this PR solve?

Feat: Change the corresponding prompt word according to the value of
fieldName #9869
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-09-25 19:53:37 +08:00
committed by GitHub
parent c1151519a0
commit abe7132630
7 changed files with 157 additions and 14 deletions

View File

@ -256,6 +256,23 @@ export const initialParserValues = {
fields: Object.values(ParserFields),
output_format: EmailOutputFormat.Text,
},
{
fileFormat: FileType.TextMarkdown,
output_format: TextMarkdownOutputFormat.Text,
},
{
fileFormat: FileType.Docx,
output_format: DocxOutputFormat.Json,
},
{
fileFormat: FileType.PowerPoint,
output_format: PptOutputFormat.Json,
},
{
fileFormat: FileType.Audio,
llm_id: '',
output_format: AudioOutputFormat.Text,
},
],
};
@ -289,7 +306,7 @@ export const initialHierarchicalMergerValues = {
],
};
export const initialContextValues = {
export const initialExtractorValues = {
...initialLlmBaseValues,
field_name: ContextGeneratorFieldName.Summary,
outputs: {},
@ -318,6 +335,7 @@ export const RestrictedUpstreamMap = {
[Operator.Splitter]: [Operator.Begin],
[Operator.HierarchicalMerger]: [Operator.Begin],
[Operator.Tokenizer]: [Operator.Begin],
[Operator.Extractor]: [Operator.Begin],
};
export const NodeMap = {