Skip to content

text-embedding-ada-002

text-embedding-ada-002 is OpenAI's second-generation embedding model that unified multiple prior embedding endpoints into a single model, producing 1536-dimensional vectors suitable for search, clustering, classification, and recommendations.

index.ts
import { embed } from 'ai';
const result = await embed({
model: 'openai/text-embedding-ada-002',
value: 'Sunny day at the beach',
})