https://github.com/maurerkrisztian/image-similarity-search-with-vector-db-example
https://github.com/maurerkrisztian/image-similarity-search-with-vector-db-example
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/maurerkrisztian/image-similarity-search-with-vector-db-example
- Owner: MaurerKrisztian
- Created: 2024-08-23T10:32:36.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-23T15:25:27.000Z (9 months ago)
- Last Synced: 2025-01-12T18:52:08.955Z (4 months ago)
- Language: HTML
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image Similarity Search With Vector DB
### Setup Instructions
0. Use a venv (optional)
```bash
venv python -m venv venv
source venv/bin/activate
```1. **Install the required packages**
- Run the following command to install dependencies from `requirements.txt`:
```bash
pip install -r requirements.txt
2. **Add Images**
- Place the images you want to vectorize in the `data/images` folder. These images will be processed and saved to the database.3. **Create Embeddings**
- Run the script to convert images into searchable vectors:```bash
python create_embeddings.py
```4. **Start the API**
- Launch the API by running:
```bash
python api.py
```
The API will be available at http://0.0.0.0:8000.5. View the Application
- Open the index.html file in your browser to access the interface.