What embeddings give you
An embedding is a fixed-length numeric vector that summarizes a complex object: a sentence, an image, a product, a user session. Once embedded, classical ML models can ride on top: kNN for retrieval, logistic regression for classification, lightgbm for tabular fusion. Embeddings turn unstructured inputs into tabular features.
Where embeddings come from
- Pretrained models — sentence-transformers, OpenAI text-embedding-3, image encoders (CLIP).
- Fine-tuned models — start from a pretrained base, fine-tune on your domain.
- Self-trained — train an autoencoder or contrastive model on your own data.
Production discipline
Embeddings are model artifacts. Pin the model version, the tokenizer version, and the embedding dimension in your feature schema. A silent embedding-model upgrade is the worst kind of drift, because everything downstream still works but means something subtly different.