Embedding

data class Embedding(val embedding: List<Any>, val index: Int)

Represents 1 embedding as a vector of floats or strings.

Constructors

Link copied to clipboard
constructor(embedding: List<Any>, index: Int)

Functions

Link copied to clipboard

Returns the embedding as a list of strings. Make sure to use EncodingFormat.BASE64.

Link copied to clipboard

Returns the embedding as a list of floats. Make sure to use EncodingFormat.FLOAT.

Properties

Link copied to clipboard

The embedding as a list of floats or strings

Link copied to clipboard
val index: Int

The index of the embedding in the list of embeddings