Skip to content

Commit

Permalink
Add error handling fields to ingest processors
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
  • Loading branch information
ohltyler committed Feb 3, 2025
1 parent 22b2fcb commit 21a5293
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
8 changes: 8 additions & 0 deletions public/configs/ingest_processors/split_ingest_processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,13 @@ export class SplitIngestProcessor extends SplitProcessor {
constructor() {
super();
this.id = generateId('split_processor_ingest');
this.optionalFields = [
...(this.optionalFields || []),
{
id: 'ignore_missing',
type: 'boolean',
value: false,
},
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ export class TextChunkingIngestProcessor extends Processor {
id: 'tag',
type: 'string',
},
{
id: 'ignore_missing',
type: 'boolean',
value: false,
},
];
}
}
5 changes: 5 additions & 0 deletions public/configs/sort_processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ export abstract class SortProcessor extends Processor {
id: 'tag',
type: 'string',
},
{
id: 'ignore_failure',
type: 'boolean',
value: false,
},
];
}
}
5 changes: 5 additions & 0 deletions public/configs/split_processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ export abstract class SplitProcessor extends Processor {
id: 'tag',
type: 'string',
},
{
id: 'ignore_failure',
type: 'boolean',
value: false,
},
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ export function WorkflowInputs(props: WorkflowInputsProps) {
.unwrap()
.then((resp: SimulateIngestPipelineResponse) => {
console.log('resp: ', resp);
const docObjs = unwrapTransformedDocs(resp);
//const docObjs = unwrapTransformedDocs(resp);
//if (docObjs.length > 0) {
//setSourceInput(customStringify(docObjs[0]));
//}
Expand Down

0 comments on commit 21a5293

Please sign in to comment.