Register and serve an OSS embedding model
This notebook sets up the open source text embedding model e5-small-v2
in a Model Serving endpoint usable for Vector Search.
- Download the model from the Hugging Face Hub.
- Register it to the MLflow Model Registry.
- Start a Model Serving endpoint to serve the model.
The model e5-small-v2
is available at https://huggingface.co/intfloat/e5-small-v2.
- MIT license
- Variants:
For a list of library versions included in Databricks Runtime, see the release notes for your Databricks Runtime version (AWS | Azure).
Install Databricks Python SDK
This notebook uses its Python client to work with serving endpoints.
Download model
Register model to MLflow
Create model serving endpoint
For more details, see "Create foundation model serving endpoints" (AWS | Azure).
Note: This example creates a small CPU endpoint that scales down to 0. This is for quick, small tests. For more realistic use cases, consider using GPU endpoints for faster embedding computation and not scaling down to 0 if you expect frequent queries, as Model Serving endpoints have some cold start overhead.