Giter VIP home page Giter VIP logo

demo-ai-app's Introduction

❍ Movies Demo

A sample movies app built with ❍ Ion to demo how to use AI in your apps using your datamovies.sst.dev

Movies App

The movie database in this app contains around 700 popular movies. You can search through them, check out related movies, and some of the movies are also tagged.

About

Most of the AI demos to date include some form of chat. While this is useful, it doesn't apply to majority of the apps out there. It also involves storing your data outside your infrastructure.

This demo shows how you can use AI related features in your infrastructure in a way that makes sense to your users.

AI

The following AI features are powered by our new Vector component.

  1. Tags — Classify data based on text that's more descriptive and carries more context
  2. Related — Find semantically similar data in your database
  3. Search — Deep search your data and images using natural language
  4. Search Images — Do a deep search through your data, including your images

Vector Component

The Vector component is based on Amazon Bedrock and it exposes a couple of functions that makes it easy to use AI with your data.

  • ingest: This takes some text, generates an embedding with a given model, and stores it in a Vector database powered by RDS. Also takes some metadata to tag the data.
  • retrieve: Takes a prompt and optionally the metadata to filter on. Returns matching results with a score 0 - 1.

Models

Currently the embeddings can be generated using the titan-embed-text-v1, titan-embed-image-v1, and text-embedding-ada-002.

Ion

❍ Ion is an experimental new engine for SST that has some unique advantages over our previous CDK based engine. Here are a couple that you can see in action in this repo:

  1. It's a lot faster to deploy, 10x faster
  2. There are no stacks or stack limits
  3. No cyclical dependency issues in your resources
  4. Access linked resources in Next.js doesn't need top-level await
  5. Next.js 14 with linked resources are deployed in order and don't need a double deploy
  6. Next.js apps have access to linked resources without the need for sst bind next build

How it Works

This demo works by ingesting movie data from IMDB, generating embeddings, and storing it in a Vector database. The Next.js app then retrieves the data from the Vector database.

The sample app is made up of 4 simple components defined in the sst.config.ts:

  1. A DynamoDB table to store the movies
  2. An S3 bucket to store the posters
  3. A Vector database to store the embeddings
  4. A Next.js app

Join the SST community over on Discord and follow us on Twitter.

demo-ai-app's People

Contributors

jayair avatar thdxr avatar

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.