Module org.nasdanika.ai
Package org.nasdanika.ai
package org.nasdanika.ai
-
ClassDescriptionCollects all samples to double[][] features and double[][] labels, then calls fit(double[][] features, double[][] labels) to fit
Function<double[][],double[][]> which makes predictions for multiple features at once.Creates a Function<double[][],double[]> predictor for each label element, predicts label elements using provided predictors and then combinesCreates a Function<double[][],double[]> predictor for each label element with features for later elements including labels for earlier.Splits input by whitespace, lowercases and then computes frequency of each wordCachingEmbeddingGenerator<S,E, K> Caches image embeddings in a map which can be loaded and saved between runs Uses image digest as caching keyCaches image embeddings in a map which can be loaded and saved between runs Uses image digest as caching keyCaches text embeddings in a map which can be loaded and saved between runs Uses text digest as caching keyChat requirement.Model coordinates (identifier)EmbeddingGenerator<S,E> Generates an embedding from source.EmbeddingGeneratorrequirement.EmbeddingModel<S,E> FittedPredictor<F,L, E> A predictor which is fitted (trained)FittedPredictor.Fitter<F,L, E> Converts image to text (String).MapCachingEmbeddingGenerator<S,E, K> Caches image embeddings in a map which can be loaded and saved between runs Uses image digest as caching keyBase interface for interfaces to work with (large language) models.Narrator<S>Converts source to text (String).Predictor<F,L> Predicts output from inputPredictor.Sample<F,L> SearchResult<D extends Comparable<D>>SimilarityComputer<T,S> Computes pair-wise similaritySimilaritySearch<T,D extends Comparable<D>> Vector index itemIndex id - item URI and embedding vector index for URIs with multiple vectors/chunks.A simple implementation which treats a character as a token.TextFloatVectorEmbeddingModel "business" interface focusing on ease of use and leaving token usage reporting to implementations.A collection of strings pre-computed embeddings, e.g. web site contents.A pre-computed embeddingsCan handle data: URIs