Skill 5.1.2
Select and fine-tune embedding models for domain-specific use cases and accuracy improvements
Key Concepts
Embedding models are compared on retrieval quality on your own data, measured with metrics such as recall at k and normalized discounted cumulative gain (NDCG) on labelled query and passage pairs, and on dimensions, maximum input length, language support, cost and latency. For example, text-embedding-3-large is more accurate than text-embedding-3-small, and both accept a dimensions parameter that shortens vectors to save storage at some cost in accuracy.
When general models miss domain terms, such as part numbers or legal phrases, an open embedding model can be fine-tuned on pairs of queries and relevant passages, for example with the sentence-transformers library in an Azure Machine Learning job, and deployed to managed compute. Changing the embedding model always means re-embedding every document and rebuilding the vector index, because vectors from different models are not comparable.