/serverless-and-ai

This is the project showcasing capabilities of AI working together in a serverless manner within AWS cloud.

Primary LanguagePythonMIT LicenseMIT

Serverless and AI

Serverless and AI - Chatbot infrastructure



Description

This is a simple project developed with Python and AWS CDK showing how to create our first project using AWS serverless services (e.g. AWS Lambda) together with AI service Amazon Bedrock. It was used for the demo session on 12th of June 2024 during AWS User Group Meetup in Warsaw, Poland on the session called "Serverless and AI - Can this be the new technological love story?".

Prerequisite

  • Docker
  • AWS CDK CLI
  • AWS CLI
  • node.js
  • Python 3.12
  • Poetry

Quick start

  1. Clone the repo
    git clone git@github.com:amswiatkowski/serverless-and-ai.git
  2. Install dependencies
    poetry install --sync
  3. Deploy the project
    ./deploy.sh --region us-east-1
  4. Run frontend locally to be able to have a conversation with chatbot
    ./run_webapp.sh

Useful commands

  • ./lint.sh Fixes indents and checks your code quality
  • ./destroy.sh --region us-east-1 Triggers cdk destroy
  • ./deploy.sh --region us-east-1 Deploys stack to the AWS account
  • ./run_webapp.sh Runs frontend locally
  • pytest -vv ./tests Run tests

Useful links

Author

Adam Świątkowski

License

Copyright © 2024, Adam Świątkowski. Released under the MIT License.