Accessing Sagemaker Endpoints from Jupyter notebook

AWS Endpoint API tutorial

https://docs.aws.amazon.com/lambda/latest/dg/services-apigateway-tutorial.html

https://docs.aws.amazon.com/sagemaker/latest/dg/onboard-vpc.html

Step 1: Configure the Lambda Function’s VPC

https://saturncloud.io/blog/how-to-invoke-sagemaker-endpoint-using-boto3-client-from-aws-lambda/

Grant VPC Permissions

https://codedamn.com/news/aws/provided-execution-role-does-not-have-permissions-to-call-createnetworkinterface-on-ec2

https://awstip.com/invoking-a-sagemaker-endpoint-from-a-python3-lambda-function-on-aws-f1305fc4bc95

LangChain Example

https://medium.com/@ryanlempka/fundamentals-of-combining-langchain-and-sagemaker-with-a-llama-2-example-694924ab0d92