Giter VIP home page Giter VIP logo

codegen-aws-cdk-demo's Introduction

AI Junior Cloud Engineer - Challenge

Cognitive architectures for RAG

alt text

State machines let us design more complex RAG "flows"

Langgraph

Overview

This solution represents a significant leap forward in deploying infrastructure and applications to the cloud efficiently. Designed for AWS, it leverages the AWS Cloud Development Kit (CDK) to generate infrastructure as code, enabling both experienced engineers and juniors to deploy complex cloud architectures with ease. Our tool is capable of interpreting tasks from both textual instructions and architectural diagrams, making it a versatile assistant for cloud deployments.

Langgraph Architecture

alt text

Key Features

  • Text and Diagram Inputs: Accepts detailed deployment tasks as text prompts or through architectural diagrams, offering flexibility in how deployment tasks are specified.
  • Error Handling and Iteration: Capable of capturing and responding to errors by regenerating solutions with error feedback, improving the deployment process iteratively.
  • Infrastructure as Code: Generates AWS CDK code to deploy infrastructure, including web servers on Amazon Linux instances, VPC configurations, encrypted EBS volumes, and more.

Installation

To install the AI Junior Cloud Engineer tool, follow these steps:

  1. Clone the repository to your local machine.
  2. Install the required dependencies using pip install -r requirements.txt.
  3. Run the AI Agent using python agent.py.

Usage

To use the AI Junior Cloud Engineer API, send a POST request to the /codelangchain/stream:

import requests

response = requests.post(
    "http://localhost:8000/codelangchain/stream",
    json={
        "input": "Create VPC with 2 Public subnets",
        "config": {},
        "kwargs": {}
    }
)
print(response)

Streamlit

Prerequisites:

  • Setup AWS credentials in your local machine.
  • Enable 'anthropic.claude-3-sonnet-20240229-v1:0' model in Amazon Bedrock.

Running the Streamlit App:

The Streamlit app is a user-friendly interface for interacting with the AI Junior Cloud Engineer tool. It allows users to input deployment tasks and view the generated AWS CDK code.

To run the Streamlit app, use the following command:

streamlit run app/app.py

License

MIT License

codegen-aws-cdk-demo's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.