java/src/main/java/io/github/eliahkagan/embed_encode/Base64Embedding.java
<reponame>EliahKagan/embed-encode<filename>java/src/main/java/io/github/eliahkagan/embed_encode/Base64Embedding.java// Copyright (c) 2023 Eliah Kagan
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

package io.github.eliahkagan.embed_encode;

import java.util.List;

/**
 * The retrieved embedding, both as original Base64 and as float coordinates.
 * @param base64  The Base64 representation of the embedding.
 * @param coordinates  The "embedding itself": a List of 32-bit floats.
 */
record Base64Embedding(String base64, List<Float> coordinates) {
}
