Uses of Interface
org.nasdanika.ai.TextEmbeddingGenerator
-
Uses of TextEmbeddingGenerator in org.nasdanika.ai
Subinterfaces of TextEmbeddingGenerator in org.nasdanika.aiModifier and TypeInterfaceDescriptioninterfaceTextFloatVectorEmbeddingModel "business" interface focusing on ease of use and leaving token usage reporting to implementations.Classes in org.nasdanika.ai that implement TextEmbeddingGeneratorModifier and TypeClassDescriptionclassSplits input by whitespace, lowercases and then computes frequency of each wordclassCaches text embeddings in a map which can be loaded and saved between runs Uses text digest as caching keyclassA simple implementation which treats a character as a token.classclassConstructors in org.nasdanika.ai with parameters of type TextEmbeddingGeneratorModifierConstructorDescriptionCachingTextEmbeddingGenerator(TextEmbeddingGenerator<E> target, Map<String, E> cache) Uses SHA-512 algorithmCachingTextEmbeddingGenerator(TextEmbeddingGenerator<E> target, Map<String, E> cache, String algorithm)