MistralClient.Models.Embedding (mistralex_ai v0.1.0)

View Source

Represents an individual embedding.

Summary

Functions

Create an embedding from a map.

Types

t()

@type t() :: %MistralClient.Models.Embedding{
  embedding: [float()],
  index: integer(),
  object: String.t()
}

Functions

from_map(data)

@spec from_map(map()) :: t()

Create an embedding from a map.