examples/image_search_colpali/README.md
This example builds an image search index using the ColPali embedding model and stores vectors in Qdrant. It supports both CLI queries and a FastAPI backend for the included frontend.
We appreciate a star ⭐ at CocoIndex Github if this is helpful.
A running Postgres. If you don't have one, start a local instance with the compose file in this repo:
docker compose -f ../../dev/postgres.yaml up -d
Make sure Qdrant is running
docker run -d -p 6334:6334 -p 6333:6333 qdrant/qdrant
Install dependencies:
pip install -e .
Build/update the index. Either of the following works:
cocoindex update main
or
python main.py
Query:
python main.py query "a red car"
python -m uvicorn api:app --reload --host 0.0.0.0 --port 8000
cd frontend
npm install
npm run dev
Go to http://localhost:5173 to search.