Uses of Class
dev.langchain4j.data.embedding.Embedding
Packages that use Embedding
Package
Description
-
Uses of Embedding in dev.langchain4j.data.embedding
Methods in dev.langchain4j.data.embedding that return Embedding -
Uses of Embedding in dev.langchain4j.model.embedding
Methods in dev.langchain4j.model.embedding that return types with arguments of type EmbeddingModifier and TypeMethodDescriptionDisabledEmbeddingModel.embed(TextSegment textSegment) EmbeddingModel.embed(TextSegment textSegment) Embed the text content of a TextSegment.Embed a text.DisabledEmbeddingModel.embedAll(List<TextSegment> textSegments) EmbeddingModel.embedAll(List<TextSegment> textSegments) Embeds the text content of a list of TextSegments. -
Uses of Embedding in dev.langchain4j.store.embedding
Methods in dev.langchain4j.store.embedding that return EmbeddingModifier and TypeMethodDescriptionEmbeddingMatch.embedding()Returns the embedding that has been matched.EmbeddingSearchRequest.queryEmbedding()Methods in dev.langchain4j.store.embedding with parameters of type EmbeddingModifier and TypeMethodDescriptionAdds a given embedding to the store.Adds a given embedding and the corresponding content that has been embedded to the store.voidAdds a given embedding to the store.static doubleCalculates cosine similarity between two vectors.default List<EmbeddingMatch<Embedded>> EmbeddingStore.findRelevant(Embedding referenceEmbedding, int maxResults) Deprecated, for removal: This API element is subject to removal in a future version.default List<EmbeddingMatch<Embedded>> EmbeddingStore.findRelevant(Embedding referenceEmbedding, int maxResults, double minScore) Deprecated, for removal: This API element is subject to removal in a future version.as of 0.31.0, useEmbeddingStore.search(EmbeddingSearchRequest)instead.default List<EmbeddingMatch<Embedded>> EmbeddingStore.findRelevant(Object memoryId, Embedding referenceEmbedding, int maxResults) Deprecated, for removal: This API element is subject to removal in a future version.as of 0.31.0, useEmbeddingStore.search(EmbeddingSearchRequest)instead.default List<EmbeddingMatch<Embedded>> EmbeddingStore.findRelevant(Object memoryId, Embedding referenceEmbedding, int maxResults, double minScore) Deprecated, for removal: This API element is subject to removal in a future version.as of 0.31.0, useEmbeddingStore.search(EmbeddingSearchRequest)instead.EmbeddingSearchRequest.EmbeddingSearchRequestBuilder.queryEmbedding(Embedding queryEmbedding) Method parameters in dev.langchain4j.store.embedding with type arguments of type EmbeddingModifier and TypeMethodDescriptionAdds multiple embeddings to the store.Adds multiple embeddings and their corresponding contents that have been embedded to the store.Constructors in dev.langchain4j.store.embedding with parameters of type EmbeddingModifierConstructorDescriptionEmbeddingMatch(Double score, String embeddingId, Embedding embedding, Embedded embedded) Creates a new instance.EmbeddingSearchRequest(Embedding queryEmbedding, Integer maxResults, Double minScore, Filter filter) Creates an instance of an EmbeddingSearchRequest.
EmbeddingStore.search(EmbeddingSearchRequest)instead.