Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
An open-source AI semantic image search app template built with Next.js, Vercel AI SDK, OpenAI, Vercel Postgres, Vercel Blob and Vercel KV.
This open-source AI semantic image search app template, built with Next.js, offers a robust solution for creating intelligent image search functionalities. It leverages the Vercel AI SDK, OpenAI, Vercel Postgres, Vercel Blob, and Vercel KV to provide a comprehensive and scalable application.
Key Features:
shadcn/ui for a sleek interface, styled using Tailwind CSS, and powered by Radix UI for accessible, headless components.Vercel KV for speed and uses Vercel Postgres with pgvector and Drizzle ORM for efficient embedding storage.Vercel Blob for scalable and reliable file (image) storage.Use Cases & Setup: This template is ideal for developers looking to quickly deploy an AI-powered image search application. It provides a clear path from deployment to local development and image indexing.
To get started, users can deploy their own version to Vercel with a single click. Local setup involves linking with Vercel, downloading environment variables, and installing dependencies. Critical environment variables for OpenAI API, Vercel KV, Vercel Postgres, and Vercel Blob must be configured.
The image indexing process is streamlined into three steps:
.jpg images in the images-to-index directory and run pnpm run upload to store them in Vercel Blob.pnpm run generate-metadata to send images to an LLM (e.g., OpenAI GPT-4o) for title and description generation.pnpm run embed-and-save to embed the generated descriptions and save them to the Vercel Postgres database, enabling semantic search.Once set up, the application can be run locally using pnpm run dev, accessible at localhost:3000. This template provides a robust foundation for building advanced AI-driven image search experiences.