Skip to content

Repository files navigation

🌟 Overview

ArtVision AI is a sophisticated art search engine that uses AI to analyze and find visually similar artworks. It combines:

  • LLaVA (hosted on Cloudflare Workers AI) for image understanding

  • BGE embeddings (hosted on Cloudflare Workers AI) for semantic search

  • Vector databases (Cloudflare Vectorize) for efficient similarity matching

  • LLM explanations (Llama-3 hosted on Cloudflare Workers AI) for intuitive results

📚 API Endpoints

Endpoint Method Description /embed POST Upload and analyze artwork /search POST Search for similar artworks /clear POST Clear the vector database

🚀 Deployment

  1. Set up Cloudflare Workers:
npm install -g wrangler
npx wrangler login
  1. Make your vector indices via the command line to use the Cloudflare Vectorize vector database
npx wrangler vectorize create art-vector-index --dimensions=768 --metric=cosine
  1. Configure AI bindings in wrangler.jsonc
"ai": {
		"binding": "AI"
	},
	"vectorize": [
    {
      "binding": "VECTORIZE",
      "index_name": "art-vector-index"
    }
  ]
  1. Deploy! 🚀
npx wrangler deploy

About

Find art with AI using Cloudflare's Vector Database Vectorize, LlaVA and LlaMA on Workers AI, and more!

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages