Skip to content

melienherrera/fashion-buddy-demo-public-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fashion Buddy Demo - Astra Vector Search and Vertex AI

Intro

Have you ever scrolled through photo sharing websites such as Instagram or Pinterest and had your eyes set on a specific outfit but did not know where to get the items? The Shopping Buddy lets you upload a photo of any outfit and returns the most similar pieces of apparel to recreate the outfit.

Overview

This repo contains a Streamlit app which uses Vertex AI, Gemini, RAG, and Astra DB to perform vector similarity search and multi-modal Retrieval Augmented Generation (RAG). The same code is available in a Colab here: Link to Colab Try out Fashion Buddy here!

Before you get started

Make sure you have the following:

  • A free Astra DB account. You can sign up with a free account here
  • A Vertex AI account. Sign up here

Credentials

  • Download your service account key as a json file from Google Cloud console. Record the path to this json file. See instructions here
  • Create a .env file in the same directory as fashion_buddy.py
  • Copy/paste the following into your .env file and replace with your environment variables.
GCP_PROJECT_ID = "<YOUR_GCP_PROJECT_ID>"
ASTRA_DB_TOKEN= "AstraCS:..."
ASTRA_API_ENDPOINT= "https://<DATABASE_ID>-<REGION>.apps.astra.datastax.com"
GOOGLE_APPLICATION_CREDENTIALS_PATH= <./PATH/TO/YOUR/GOOGLE_SERVICE_ACCOUNT_KEY.json>

Run the Application

In your terminal, run streamlit run fashion_buddy.py from the same directory as fashion_buddy.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages