Bring Your Own
Embedding Models
Learn how to integrate custom embedding models with Pixeltable
Pixeltable provides extensive built-in support for popular embedding models, but you can also easily integrate your own custom embedding models. This guide shows you how to create and use custom embedding functions for any model architecture.
Quick Start
Here’s a simple example using a custom BERT model:
Production Best Practices
The quick start example works but isn’t production-ready. Below we’ll cover how to optimize your custom embedding UDFs.
Model Caching
Always cache your model instances to avoid reloading on every call:
Batch Processing
Use Pixeltable’s batching capabilities for better performance:
Error Handling
Always implement proper error handling in production UDFs:
Additional Resources
Was this page helpful?