Uses of Enum Class
com.tnsai.llm.cache.EmbeddingTask
Packages that use EmbeddingTask
Package
Description
LLM response caching with semantic similarity and prompt caching support.
-
Uses of EmbeddingTask in com.tnsai.llm.cache
Methods in com.tnsai.llm.cache that return EmbeddingTaskModifier and TypeMethodDescriptionstatic EmbeddingTaskReturns the enum constant of this class with the specified name.static EmbeddingTask[]EmbeddingTask.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.tnsai.llm.cache with parameters of type EmbeddingTaskModifier and TypeMethodDescriptiondefault float[]EmbeddingProvider.embed(String text, EmbeddingTask task) Generates an embedding fortextconditioned ontask.float[]OllamaEmbeddingProvider.embed(String text, EmbeddingTask task) default List<float[]> EmbeddingProvider.embedBatch(List<String> texts, EmbeddingTask task) Batch counterpart ofEmbeddingProvider.embed(String, EmbeddingTask).List<float[]> OllamaEmbeddingProvider.embedBatch(List<String> texts, EmbeddingTask task)