SyncAI.news, a Varaisys broadcasting
Introducing text and code embeddings
ON

OpenAI News

· 1 min read

AI LabsOpenAI News

Introducing text and code embeddings

Embeddings are numerical representations of concepts converted to number sequences, which make it easy for computers to understand the relationships between those concepts. Our embeddings outperform top models in 3 standard benchmarks, including a 20% relative improvement in code search.

Embeddings are useful for working with natural language and code, because they can be readily consumed and compared by other machine learning models and algorithms like clustering or search.

Embeddings that are numerically similar are also semantically similar. For example, the embedding vector of “canine companions say” will be more similar to the embedding vector of “woof” than that of “meow.”

The new endpoint uses neural network models, which are descendants of GPT‑3, to map text and code to a vector representation—“embedding” them in a high-dimensional space. Each dimension captures some aspect of the input.

The new /embeddings⁠(opens in a new window) endpoint in the OpenAI API⁠(opens in a new window) provides text and code embeddings with a few lines of code:

We’re releasing three families of embedding models, each tuned to perform well on different functionalities: text similarity, text search, and code search. The models take either text or code as input and return an embedding vector.

Models

Use Cases

Text similarity: Captures semantic similarity between pieces of text.

text-similarity-{ada, babbage, curie, davinci}-001

Clustering, regression, anomaly detection, visualization

Text search: Semantic information retrieval over documents.

text-search-{ada, babbage, curie, davinci}-{query, doc}-001

Search, context relevance, information retrieval

Code search: Find relevant code with a query in natural language.

code-search-{ada, babbage}-{code, text}-001

Code search and relevance

Original source

This story was published by OpenAI News. SyncAI.news shows a preview; the complete article is on the publisher's site.

Read the full story on openai.com

Similar News