Overview
Text Embedding API converts text into high-dimensional vector representations that capture semantic information. These vectors can be used for:- Semantic Search: Search by meaning rather than keyword matching
- Text Classification: Automatically categorize text
- Similarity Computation: Calculate semantic similarity between texts
- Clustering: Automatically group similar texts
- Recommendations: Content-based similarity recommendations
- RAG Applications: Core capability for Retrieval-Augmented Generation
Quick Start
Basic Example
Batch Processing
Supported Models
| Model | Dimensions | Features | Recommended For |
|---|---|---|---|
text-embedding-3-small | 1536 | Cost-effective, fast | General use |
text-embedding-3-large | 3072 | Best quality | High precision needs |
text-embedding-ada-002 | 1536 | Classic, compatible | Migration |