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

fi.evolver.ai.spring.embedding.EmbeddingVectorApi Maven / Gradle / Ivy

package fi.evolver.ai.spring.embedding;

import java.time.Duration;
import java.util.List;

import fi.evolver.ai.spring.Model;

public interface EmbeddingVectorApi {

	List createEmbeddingVectorBatch(String provider, Model model, List texts, Duration timeout);

	default List createEmbeddingVectorBatch(Model model, List texts, Duration timeout) {
		return createEmbeddingVectorBatch(null, model, texts, timeout);
	}

	List createEmbeddingVectorsInBatches(String provider, Model model, List texts, Duration timeout);

	default List createEmbeddingVectorsInBatches(Model model, List texts, Duration timeout) {
		return createEmbeddingVectorsInBatches(null, model, texts, timeout);
	}

	public EmbeddingVectors createEmbeddingVectorCache(String provider, Model model, Duration timeout);

	default public EmbeddingVectors createEmbeddingVectorCache(Model model) {
		return createEmbeddingVectorCache(null, model, EmbeddingApi.DEFAULT_TIMEOUT);
	}

	default public EmbeddingVectors createEmbeddingVectorCache(Model model, Duration timeout) {
		return createEmbeddingVectorCache(null, model, timeout);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy