Skip to content

text-embedding-3-small

text-embedding-3-small delivers higher MTEB scores than ada-002 at lower cost, with a 1536-dimension default that drops into existing pipelines and a flexible dimensions parameter for further storage savings.

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