Represents an embedding vector returned by embedding endpoint.
import { Embedding } from "argot-open-ai/models/components";
let value: Embedding = {
index: 318569,
embedding: [
6674.10,
],
object: "embedding",
};
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". |