A LeapfrogAI API-compatible text embeddings wrapper for producing embeddings from text content.
See the LeapfrogAI documentation website for system requirements and dependencies.
- LeapfrogAI API for a fully RESTful application
- Supabase for a vector database to store resulting embeddings in
The default model that comes with this backend in this repository's officially released images is instructor-xl.
To build and deploy the text-embeddings backend Zarf package into an existing UDS Kubernetes cluster:
Important
Execute the following commands from the root of the LeapfrogAI repository
pip install 'huggingface_hub[cli,hf_transfer]' # Used to download the model weights from huggingface
make build-text-embeddings LOCAL_VERSION=dev
uds zarf package deploy packages/text-embeddings/zarf-package-text-embeddings-*-dev.tar.zst --confirm
To run the text-embeddings backend locally:
Important
Execute the following commands from this sub-directory
# Install dev and runtime dependencies
make install
# Clone Model
python scripts/model_download.py
# Start the model backend
make dev