AWS Lambda function to infer foundation models in Amazon Bedrock.
This sample project shows how to use an AWS Lambda function to infer foundational models in Bedrock. The function is invoked with a JSON payload to infer the desired foundation model and it will return Bedrock response with an execution time to evaluate different models performances.