Using Embeddings

Learn how to use embeddings using the OpenAI API.

Traditional methods of collecting data didn't capture relationships between words and as a result, they left out the exploration of linguistic richness. Embeddings capture a lot that was missed before and much more. In order to understand how they are used let's begin by first understanding the models that support embeddings.

Getting text embeddings using the OpenAI API

At the center of embedding, is an embedding model. When using the OpenAI API, you should use either the text-embedding-3-small or text-embedding-3-large embedding models. Compared to previous models, these offer lower costs, higher multilingual performance, and new parameters to control the overall size.

Here are the general steps for generating embeddings. ...