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

x/openai/resources/mod.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.26.0/resources/mod.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".