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.azure
Methods in dev.langchain4j.model.azure that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.bedrock
Methods in dev.langchain4j.model.bedrock that return EmbeddingMethods in dev.langchain4j.model.bedrock that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.bedrock.internal
Methods in dev.langchain4j.model.bedrock.internal that return EmbeddingMethods in dev.langchain4j.model.bedrock.internal that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.cohere
Methods in dev.langchain4j.model.cohere that return types with arguments of type 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.model.github
Methods in dev.langchain4j.model.github that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.googleai
Methods in dev.langchain4j.model.googleai that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.huggingface
Methods in dev.langchain4j.model.huggingface that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.jina
Methods in dev.langchain4j.model.jina that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.jlama
Methods in dev.langchain4j.model.jlama that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.localai
Methods in dev.langchain4j.model.localai that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.mistralai
Methods in dev.langchain4j.model.mistralai that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.nomic
Methods in dev.langchain4j.model.nomic that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.ollama
Methods in dev.langchain4j.model.ollama that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.openai
Methods in dev.langchain4j.model.openai that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.ovhai
Methods in dev.langchain4j.model.ovhai that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.vertexai
Methods in dev.langchain4j.model.vertexai that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.voyageai
Methods in dev.langchain4j.model.voyageai that return types with arguments of type Embedding -
Uses of Embedding in dev.langchain4j.model.workersai
Methods in dev.langchain4j.model.workersai that return types with arguments of type EmbeddingModifier and TypeMethodDescriptionWorkersAiEmbeddingModel.embed
(TextSegment textSegment) Embed the text content of a TextSegment.Embed a text.WorkersAiEmbeddingModel.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.void
Adds a given embedding to the store.static double
Calculates 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. -
Uses of Embedding in dev.langchain4j.store.embedding.astradb
Methods in dev.langchain4j.store.embedding.astradb with parameters of type EmbeddingModifier and TypeMethodDescriptionAdds a given embedding to the store.AstraDbEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) Adds a given embedding and the corresponding content that has been embedded to the store.void
Adds a given embedding to the store.AstraDbEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) Finds the most relevant (closest in space) embeddings to the provided reference embedding.AstraDbEmbeddingStore.findRelevant
(Embedding referenceEmbedding, io.stargate.sdk.data.domain.query.Filter metaDatafilter, int maxResults, double minScore) Semantic search with metadata filtering.Method parameters in dev.langchain4j.store.embedding.astradb with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore
Methods in dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore with parameters of type EmbeddingModifier and TypeMethodDescriptionAzureCosmosDbMongoVCoreEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
AzureCosmosDbMongoVCoreEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) Method parameters in dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.azure.cosmos.nosql
Methods in dev.langchain4j.store.embedding.azure.cosmos.nosql with parameters of type EmbeddingModifier and TypeMethodDescriptionAzureCosmosDbNoSqlEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
AzureCosmosDbNoSqlEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) Method parameters in dev.langchain4j.store.embedding.azure.cosmos.nosql with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.azure.search
Methods in dev.langchain4j.store.embedding.azure.search with parameters of type EmbeddingModifier and TypeMethodDescriptionAdd an embedding to the store.AbstractAzureAiSearchEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) Add an embedding and the related content to the store.void
Add an embedding to the store.Method parameters in dev.langchain4j.store.embedding.azure.search with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.cassandra
Methods in dev.langchain4j.store.embedding.cassandra with parameters of type EmbeddingModifier and TypeMethodDescriptionAdd a new embedding to the store.CassandraEmbeddingStore.add
(@NonNull Embedding embedding, TextSegment textSegment) Add a new embedding to the store.void
Add a new embedding to the store.CassandraEmbeddingStore.findRelevant
(Embedding embedding, int maxResults, double minScore) Search for relevant.CassandraEmbeddingStore.findRelevant
(Embedding embedding, int maxResults, double minScore, Metadata metadata) Similarity Search ANN based on the embedding.Method parameters in dev.langchain4j.store.embedding.cassandra with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.chroma
Methods in dev.langchain4j.store.embedding.chroma with parameters of type EmbeddingModifier and TypeMethodDescriptionChromaEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
ChromaEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) Method parameters in dev.langchain4j.store.embedding.chroma with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.coherence
Methods in dev.langchain4j.store.embedding.coherence with parameters of type EmbeddingModifier and TypeMethodDescriptionCoherenceEmbeddingStore.add
(Embedding embedding, TextSegment segment) void
Method parameters in dev.langchain4j.store.embedding.coherence with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.couchbase
Methods in dev.langchain4j.store.embedding.couchbase with parameters of type EmbeddingModifier and TypeMethodDescriptionCouchbaseEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
Method parameters in dev.langchain4j.store.embedding.couchbase with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.elasticsearch
Methods in dev.langchain4j.store.embedding.elasticsearch with parameters of type EmbeddingModifier and TypeMethodDescriptionElasticsearchEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
Method parameters in dev.langchain4j.store.embedding.elasticsearch with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.infinispan
Methods in dev.langchain4j.store.embedding.infinispan with parameters of type EmbeddingModifier and TypeMethodDescriptionInfinispanEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
Method parameters in dev.langchain4j.store.embedding.infinispan with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.inmemory
Methods in dev.langchain4j.store.embedding.inmemory with parameters of type EmbeddingModifier and TypeMethodDescriptionvoid
void
Method parameters in dev.langchain4j.store.embedding.inmemory with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.mariadb
Methods in dev.langchain4j.store.embedding.mariadb with parameters of type EmbeddingModifier and TypeMethodDescriptionAdds a given embedding to the store.MariaDbEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) Adds a given embedding and the corresponding content that has been embedded to the store.void
Adds a given embedding to the store.Method parameters in dev.langchain4j.store.embedding.mariadb with type arguments of type EmbeddingModifier and TypeMethodDescriptionAdds multiple embeddings to the store.MariaDbEmbeddingStore.addAll
(List<Embedding> embeddings, List<TextSegment> embedded) Adds multiple embeddings and their corresponding contents that have been embedded to the store. -
Uses of Embedding in dev.langchain4j.store.embedding.milvus
Methods in dev.langchain4j.store.embedding.milvus with parameters of type EmbeddingModifier and TypeMethodDescriptionMilvusEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
Method parameters in dev.langchain4j.store.embedding.milvus with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.mongodb
Methods in dev.langchain4j.store.embedding.mongodb with parameters of type EmbeddingModifier and TypeMethodDescriptionMongoDbEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
Method parameters in dev.langchain4j.store.embedding.mongodb with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.neo4j
Methods in dev.langchain4j.store.embedding.neo4j with parameters of type EmbeddingModifier and TypeMethodDescriptionNeo4jEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
Method parameters in dev.langchain4j.store.embedding.neo4j with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.opensearch
Methods in dev.langchain4j.store.embedding.opensearch with parameters of type EmbeddingModifier and TypeMethodDescriptionOpenSearchEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
Method parameters in dev.langchain4j.store.embedding.opensearch with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.oracle
Methods in dev.langchain4j.store.embedding.oracle with parameters of type EmbeddingModifier and TypeMethodDescriptionOracleEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
Method parameters in dev.langchain4j.store.embedding.oracle with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.pgvector
Methods in dev.langchain4j.store.embedding.pgvector with parameters of type EmbeddingModifier and TypeMethodDescriptionAdds a given embedding to the store.PgVectorEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) Adds a given embedding and the corresponding content that has been embedded to the store.void
Adds a given embedding to the store.Method parameters in dev.langchain4j.store.embedding.pgvector with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.pinecone
Methods in dev.langchain4j.store.embedding.pinecone with parameters of type EmbeddingModifier and TypeMethodDescriptionPineconeEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
Method parameters in dev.langchain4j.store.embedding.pinecone with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.qdrant
Methods in dev.langchain4j.store.embedding.qdrant with parameters of type EmbeddingModifier and TypeMethodDescriptionQdrantEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
QdrantEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) Method parameters in dev.langchain4j.store.embedding.qdrant with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.tablestore
Methods in dev.langchain4j.store.embedding.tablestore with parameters of type EmbeddingModifier and TypeMethodDescriptionTablestoreEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
protected void
TablestoreEmbeddingStore.innerAdd
(String id, Embedding embedding, TextSegment textSegment) Method parameters in dev.langchain4j.store.embedding.tablestore with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.vespa
Methods in dev.langchain4j.store.embedding.vespa with parameters of type EmbeddingModifier and TypeMethodDescriptionVespaEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
Adds a new embedding with provided ID to the store.Method parameters in dev.langchain4j.store.embedding.vespa with type arguments of type Embedding -
Uses of Embedding in dev.langchain4j.store.embedding.weaviate
Methods in dev.langchain4j.store.embedding.weaviate with parameters of type EmbeddingModifier and TypeMethodDescriptionWeaviateEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
Adds a new embedding with provided ID to the store.Method parameters in dev.langchain4j.store.embedding.weaviate with type arguments of type Embedding
EmbeddingStore.search(EmbeddingSearchRequest)
instead.