You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Create an empty list to hold the lists of Float values
List<List> floatEmbeddings = new ArrayList<>();
// Iterate over each Embedding object
for (Embedding embedding : embeddings) {
// Create a new list to hold the Float values for this embedding
List floatList = new ArrayList<>();
// Convert each Double value to Float and add it to the list
for (Double value : embedding.getEmbedding()) {
floatList.add(value.floatValue());
}
// Add the list of Float values to the outer list
floatEmbeddings.add(floatList);