All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.semantickernel.services.textembedding.EmbeddingGenerationService Maven / Gradle / Ivy

There is a newer version: 1.4.2
Show newest version
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.services.textembedding;

import com.microsoft.semantickernel.services.AIService;
import java.util.List;
import reactor.core.publisher.Mono;

/**
 *  Interface for text embedding generation services
 * @param  The type of the data to generate embeddings for
 */
public interface EmbeddingGenerationService extends AIService {

    /**
     * Generates a list of embeddings associated to the data
     *
     * @param data List of texts to generate embeddings for
     * @return List of embeddings of each data point
     */
    Mono> generateEmbeddingsAsync(List data);

    /**
     * Generates an embedding associated to the data
     *
     * @param data Text to generate embedding for
     * @return Embedding of the data
     */

    Mono generateEmbeddingAsync(TValue data);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy