Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/embeddings.ts>Embedding

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
interface Embedding
import { type Embedding } from "https://deno.land/x/openai@v4.61.1/resources/embeddings.ts";

Represents an embedding vector returned by embedding endpoint.

Properties

embedding: Array<number>

The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide.

index: number

The index of the embedding in the list of embeddings.

object: "embedding"

The object type, which is always "embedding".