Embeddings

View as Markdown

Embeddings

1const result = await client.embeddings.create({
2 model: "openai/text-embedding-3-small",
3 input: ["hello world", "goodbye world"],
4});
5
6console.log(result.data[0].embedding.length);