brew install uv
uv venv --python 3.12
source .venv/bin/activate
uv syncCopy the environment variable template and fill in necessary information
cp .env.sample .envPlace IDs in the folder photos
mkdir -p photosLoad the images, embed and store to MongoDB Atlas
python3 embed_images.pyCreate the following Vector Search index in the collection
{
"fields": [{
"type": "vector",
"path": "embedding",
"numDimensions": 512,
"similarity": "euclidean"
}]
}Run the image search UI
python image_search.py