Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 3.32 KB

embedding.md

File metadata and controls

26 lines (19 loc) · 3.32 KB

Embedding

Represents an embedding vector returned by embedding endpoint.

Example Usage

import { Embedding } from "argot-open-ai/models/components";

let value: Embedding = {
  index: 318569,
  embedding: [
    6674.10,
  ],
  object: "embedding",
};

Fields

Field Type Required Description
index number ✔️ The index of the embedding in the list of embeddings.
embedding number[] ✔️ The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide.
object components.EmbeddingObject ✔️ The object type, which is always "embedding".