Skip to content

EmbedResponseBody

Response from the embeddings endpoint containing the generated embeddings and usage information.

Example Usage

typescript
import { EmbedResponseBody } from "@meetkai/mka1/models/operations";

let value: EmbedResponseBody = {
  data: [
    [
      1904.78,
      7775.3,
    ],
    [
      8285.36,
      5428.4,
    ],
    [
      1570.79,
      4884.14,
    ],
  ],
  model: "911",
};

Fields

FieldTypeRequiredDescription
datanumber[][]✔️A list of embedding vectors. Each embedding is an array of floating point numbers representing the semantic meaning of the input text.
modelstring✔️The model used for generating the embeddings
usageoperations.UsageUsage statistics for the embeddings request