Uses of Class
com.microsoft.semantickernel.ai.embeddings.Embedding
-
Packages that use Embedding Package Description com.microsoft.semantickernel.ai.embeddings com.microsoft.semantickernel.memory -
-
Uses of Embedding in com.microsoft.semantickernel.ai.embeddings
Methods in com.microsoft.semantickernel.ai.embeddings that return Embedding Modifier and Type Method Description EmbeddingEmbedding. divide(float divisor)Divide theEmbeddingvector by a divisor.static EmbeddingEmbedding. empty()EmbeddingEmbedding. multiply(float multiplier)Multiply theEmbeddingvector by a multiplier.EmbeddingEmbedding. normalize()Normalizes the underlying vector, such that the Euclidean length is 1.Methods in com.microsoft.semantickernel.ai.embeddings that return types with arguments of type Embedding Modifier and Type Method Description reactor.core.publisher.Mono<List<Embedding>>EmbeddingGeneration. generateEmbeddingsAsync(List<TValue> data)Generates a list of embeddings associated to the dataMethods in com.microsoft.semantickernel.ai.embeddings with parameters of type Embedding Modifier and Type Method Description floatEmbedding. cosineSimilarity(Embedding other)Calculates the cosine similarity of this vector with another.floatEmbedding. dot(Embedding other)Calculates the dot product of thisEmbeddingwith another. -
Uses of Embedding in com.microsoft.semantickernel.memory
Methods in com.microsoft.semantickernel.memory that return Embedding Modifier and Type Method Description EmbeddingMemoryRecord. getEmbedding()Gets the source content embeddings.Methods in com.microsoft.semantickernel.memory with parameters of type Embedding Modifier and Type Method Description static MemoryRecordMemoryRecord. fromJsonMetadata(String json, Embedding embedding, String key, ZonedDateTime timestamp)static MemoryRecordMemoryRecord. fromMetadata(MemoryRecordMetadata metadata, Embedding embedding, String key, ZonedDateTime timestamp)Create a memory record from a memory record's metadata.reactor.core.publisher.Mono<reactor.util.function.Tuple2<MemoryRecord,Float>>MemoryStore. getNearestMatchAsync(String collectionName, Embedding embedding, float minRelevanceScore, boolean withEmbedding)Gets the nearest match to theEmbeddingof typeFloat.reactor.core.publisher.Mono<Collection<reactor.util.function.Tuple2<MemoryRecord,Float>>>MemoryStore. getNearestMatchesAsync(String collectionName, Embedding embedding, int limit, float minRelevanceScore, boolean withEmbeddings)Gets the nearest matches to theEmbeddingof typeFloat.static MemoryRecordMemoryRecord. localRecord(String id, String text, String description, Embedding embedding, String additionalMetadata, String key, ZonedDateTime timestamp)Prepare an instance for a memory stored in the internal storage provider.static MemoryRecordMemoryRecord. referenceRecord(String externalId, String sourceName, String description, Embedding embedding, String additionalMetadata, String key, ZonedDateTime timestamp)Prepare an instance about a memory which source is stored externally.Constructors in com.microsoft.semantickernel.memory with parameters of type Embedding Constructor Description MemoryRecord(MemoryRecordMetadata metadata, Embedding embedding, String key, ZonedDateTime timestamp)Creates an instance of aMemoryRecord.
-