Embeddings: Basic Usage
Obtain vector representations of text via the OpenAI API. We cover the text-embedding-3 models, the dimensions parameter, prices and limits, retries (built into the SDK and via tenacity), and batch processing.
ENМатеріали курсів поки англійською. Інтерфейс, ШІ-наставник і перевірка завдань — українською.
What Are Embeddings
An embedding is a vector of floating-point numbers that represents the meaning of text. The closer two vectors are in space, the more semantically similar the texts are.
Current OpenAI embedding models:
| Model | Default dimensions | Max input | Price per 1M tokens |
|---|---|---|---|
text-embedding-3-small | 1536 | 8192 tokens | $0.02 |
text-embedding-3-large | 3072 | 8192 tokens | $0.13 |
text-embedding-ada-002 is the previous generation ($0.10 per 1M tokens); use the -3 models for new projects. You pay for input tokens only.
Далі урок відкривається після безкоштовної реєстрації
Реєстрація через email або Google відкриває перші два уроки кожного курсу назавжди і 7 днів повного доступу до всього каталогу. Картка не потрібна.


