Skip to main content

Serverless Integration for Large Language Model (LLM) using AWS Lambda

About

We are going to use an LLM model to summarize a web page and store the outcome into a DynamoDB table. The page is provided through an URL which is also the key used for storing the summarization outcome in the DynamodDB table.

source code

Pprerequisite

  1. A computer. If using Windows please check it’s Windows 11 and recent versions of Windows 10 (version 1903 or higher, with build 18362 or higher).
  2. An AWS account. You can create a free account if don’t have one yet.
  3. Install Docker Desktop by clicking the Download Docker Desktop.
  4. Install Visual Studio Code, and DevContainer extension.
  5. Install Git.
  6. Clone this repo and open it in Visual Studio Code. (Choose “Reopen in container” when being asked)
  7. Install AWS CLI and CDK by running the ./script/install_tools.sh in Visual Studio Code’s Integrated Terminal.

Architecture

Architecture

References

2025

2 - Hello World from Amazon Bedrock
·1078 words·6 mins
1 - Hello World from Ollama
·1261 words·6 mins