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.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) Finds the most relevant (closest in space) embeddings to the provided reference embedding.EmbeddingStore.findRelevant(Embedding referenceEmbedding, int maxResults, double minScore) Finds the most relevant (closest in space) embeddings to the provided reference embedding.default List<EmbeddingMatch<Embedded>> EmbeddingStore.findRelevant(Object memoryId, Embedding referenceEmbedding, int maxResults) Finds the most relevant (closest in space) embeddings to the provided reference embedding.default List<EmbeddingMatch<Embedded>> EmbeddingStore.findRelevant(Object memoryId, Embedding referenceEmbedding, int maxResults, double minScore) Finds the most relevant (closest in space) embeddings to the provided reference embedding.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.