Learn how to convert a text into embedding vectors and find the similarity ratio between two separate texts.


Embedding is a method to represent the data in a vector of continuous numbers. We can provide these vectors to machine learning algorithms and models. Similar texts will have the same embedding vectors, and two different texts will have very different embeddings.

OpenAI currently offers three embedding model families for various functionalities:

  • Text similarity
  • Text search
  • Code search

Each family contains up to four models ranging in capabilities such as:

Get hands-on with 1200+ tech skills courses.