The inference container for ColPali document retrieval models
This service provides document retrieval capabilities using ColPali models. ColPali is a vision-language model optimized for document understanding, supporting complex layouts, tables, charts, and multimodal content without requiring OCR preprocessing.
The service automatically supports all ColPali-compatible models:
- ColQwen2 (recommended):
vidore/colqwen2-v1.0 - ColPali:
vidore/colpali-v1.0,vidore/colpali-v1.1 - ColSmol (smaller):
vidore/colsmol-v1.0 - Custom models following ColPali architecture
COLPALI_MODEL_NAME: ColPali model to download (default:vidore/colqwen2-v1.0)TRUST_REMOTE_CODE: Enable trust remote code for custom models (default:false)
ENABLE_CUDA: Enable CUDA GPU support (trueor1)CUDA_CORE: Specific CUDA device (default:cuda:0)
LOCAL_REPO="multi2vec-colpali" \
COLPALI_MODEL_NAME="vidore/colqwen2-v1.0" \
./cicd/build.sh# ColQwen2 (recommended)
COLPALI_MODEL_NAME="vidore/colqwen2-v1.0" ./cicd/build.sh
# ColPali v1.1
COLPALI_MODEL_NAME="vidore/colpali-v1.1" ./cicd/build.sh
# ColSmol (smaller model)
COLPALI_MODEL_NAME="vidore/colsmol-v1.0" ./cicd/build.shReturns multi-vector embeddings optimized for document retrieval:
curl -X POST "http://localhost:8000/vectorize" \
-H "Content-Type: application/json" \
-d '{
"texts": ["What is shown in this document?"],
"images": ["<base64_encoded_image>"]
}'Response includes:
textVectors: Multi-vector query embeddingsimageVectors: Multi-vector document embeddingssimilarityScores: MaxSim similarity scores (when both texts and images provided)
Returns single vectors (mean pooled) for backward compatibility with CLIP-based systems.
Returns model configuration and capabilities.
- Multi-vector embeddings: More precise document representation than single vectors
- Layout awareness: Understands tables, charts, and spatial relationships
- No OCR required: End-to-end visual document processing
- MaxSim scoring: Advanced similarity computation for document retrieval
- GPU acceleration: CUDA support for faster inference
- Multiple model variants: Automatic support for all ColPali models
LOCAL_REPO="multi2vec-colpali" ./cicd/test.shFor more information about ColPali models and document retrieval: