ExLLM.Providers.Gemini.Embeddings.ContentEmbedding (ex_llm v0.8.1)

View Source

A list of floats representing an embedding.

Summary

Functions

Converts API response to ContentEmbedding struct.

Types

t()

@type t() :: %ExLLM.Providers.Gemini.Embeddings.ContentEmbedding{values: [float()]}

Functions

from_api(data)

@spec from_api(map()) :: t()

Converts API response to ContentEmbedding struct.