InvokeBlueprintOptimizationAsync
Source:
src/AWS/BedrockDataAutomation/InvokeBlueprintOptimizationAsync.ts
Runtime binding for the InvokeBlueprintOptimizationAsync operation (IAM
action bedrock:InvokeBlueprintOptimizationAsync on the blueprint ARN +
the account’s data automation profiles) — start an asynchronous job that
tunes the bound blueprint’s schema against labeled samples (asset +
ground-truth pairs in S3) from a deployed Function.
The samples and output location are read/written with the caller’s S3
permissions. Poll the returned invocation with the
GetBlueprintOptimizationStatus binding. Provide the implementation with
Effect.provide(AWS.BedrockDataAutomation.InvokeBlueprintOptimizationAsyncHttp).
Blueprint Optimization
Section titled “Blueprint Optimization”// deploy time — bind the blueprintconst optimize = yield* AWS.BedrockDataAutomation.InvokeBlueprintOptimizationAsync(blueprint);
// runtime — start the optimization jobconst { invocationArn } = yield* optimize({ samples: [ { assetS3Object: { s3Uri: `s3://${bucket}/samples/invoice-1.pdf` }, groundTruthS3Object: { s3Uri: `s3://${bucket}/samples/invoice-1.json` }, }, ], outputConfiguration: { s3Object: { s3Uri: `s3://${bucket}/optimization-results/` }, }, dataAutomationProfileArn: profileArn,});