Skip to content

This repository contains an example React NextJS application that leverage Clickhouse vector Search capability to implement image similarity search.

License

Notifications You must be signed in to change notification settings

ClickHouse/ch-image-search-demo

Repository files navigation

ch-image-search-demo

This repository contains an example React NextJS application that leverage Clickhouse vector Search capability to implement image similarity search.

Prerequisite

  • Clickhouse server
  • NodeJS LTS
  • Python 3.10+

Architecture

This application has two parts:

  1. Python embedding model
  2. ReactJS frontend

Python embedding model

The Python application is used to generate embeddings for the images.

Setup

Install the dependencies:

cd py-embed
pip install -r requirements.txt

Run the application:

uvicorn app:app --reload

ReactJS application

The ReactJS application is used to stream images from Clickhouse and also perform image similarity search.

Setup

Install the dependencies:

yarn install

Run the application:

yarn dev

Build the application:

yarn build

About

This repository contains an example React NextJS application that leverage Clickhouse vector Search capability to implement image similarity search.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published