Uses of Class
dev.langchain4j.data.embedding.Embedding
Package
Description
-
Uses of Embedding in dev.langchain4j.data.embedding
-
Uses of Embedding in dev.langchain4j.model.azure
-
Uses of Embedding in dev.langchain4j.model.bedrock
-
Uses of Embedding in dev.langchain4j.model.bedrock.internal
-
Uses of Embedding in dev.langchain4j.model.cohere
-
Uses of Embedding in dev.langchain4j.model.dashscope
-
Uses of Embedding in dev.langchain4j.model.embedding
Modifier 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
-
Uses of Embedding in dev.langchain4j.model.googleai
-
Uses of Embedding in dev.langchain4j.model.huggingface
-
Uses of Embedding in dev.langchain4j.model.jina
-
Uses of Embedding in dev.langchain4j.model.jlama
-
Uses of Embedding in dev.langchain4j.model.localai
-
Uses of Embedding in dev.langchain4j.model.mistralai
-
Uses of Embedding in dev.langchain4j.model.nomic
-
Uses of Embedding in dev.langchain4j.model.ollama
-
Uses of Embedding in dev.langchain4j.model.openai
-
Uses of Embedding in dev.langchain4j.model.ovhai
-
Uses of Embedding in dev.langchain4j.model.qianfan
-
Uses of Embedding in dev.langchain4j.model.vertexai
-
Uses of Embedding in dev.langchain4j.model.voyageai
-
Uses of Embedding in dev.langchain4j.model.workersai
Modifier 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.model.zhipu
-
Uses of Embedding in dev.langchain4j.store.embedding
Modifier and TypeMethodDescriptionEmbeddingMatch.embedding()
Returns the embedding that has been matched.EmbeddingSearchRequest.queryEmbedding()
Modifier 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) Modifier and TypeMethodDescriptionAdds multiple embeddings to the store.Adds multiple embeddings and their corresponding contents that have been embedded to the store.ModifierConstructorDescriptionEmbeddingMatch
(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
Modifier 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. -
Uses of Embedding in dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore
Modifier and TypeMethodDescriptionAzureCosmosDbMongoVCoreEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
AzureCosmosDbMongoVCoreEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) -
Uses of Embedding in dev.langchain4j.store.embedding.azure.cosmos.nosql
Modifier and TypeMethodDescriptionAzureCosmosDbNoSqlEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
AzureCosmosDbNoSqlEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) -
Uses of Embedding in dev.langchain4j.store.embedding.azure.search
Modifier 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.Modifier and TypeMethodDescriptionAdd a list of embeddings to the store.AbstractAzureAiSearchEmbeddingStore.addAll
(List<Embedding> embeddings, List<TextSegment> embedded) Add a list of embeddings, and the list of related content, to the store. -
Uses of Embedding in dev.langchain4j.store.embedding.cassandra
Modifier 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.Modifier and TypeMethodDescriptionAdd multiple embeddings as a single action.CassandraEmbeddingStore.addAll
(List<Embedding> embeddingList, List<TextSegment> textSegmentList) Add multiple embeddings as a single action. -
Uses of Embedding in dev.langchain4j.store.embedding.chroma
Modifier and TypeMethodDescriptionChromaEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
ChromaEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) -
Uses of Embedding in dev.langchain4j.store.embedding.coherence
Modifier and TypeMethodDescriptionCoherenceEmbeddingStore.add
(Embedding embedding, TextSegment segment) void
-
Uses of Embedding in dev.langchain4j.store.embedding.couchbase
Modifier and TypeMethodDescriptionCouchbaseEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
-
Uses of Embedding in dev.langchain4j.store.embedding.elasticsearch
Modifier and TypeMethodDescriptionElasticsearchEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
-
Uses of Embedding in dev.langchain4j.store.embedding.infinispan
Modifier and TypeMethodDescriptionInfinispanEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
-
Uses of Embedding in dev.langchain4j.store.embedding.inmemory
Modifier and TypeMethodDescriptionvoid
void
-
Uses of Embedding in dev.langchain4j.store.embedding.milvus
Modifier and TypeMethodDescriptionMilvusEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
-
Uses of Embedding in dev.langchain4j.store.embedding.mongodb
Modifier and TypeMethodDescriptionMongoDbEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
MongoDbEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) -
Uses of Embedding in dev.langchain4j.store.embedding.neo4j
Modifier and TypeMethodDescriptionNeo4jEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
-
Uses of Embedding in dev.langchain4j.store.embedding.opensearch
Modifier and TypeMethodDescriptionOpenSearchEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
-
Uses of Embedding in dev.langchain4j.store.embedding.oracle
Modifier and TypeMethodDescriptionOracleEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
-
Uses of Embedding in dev.langchain4j.store.embedding.pgvector
Modifier 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.Modifier and TypeMethodDescriptionAdds multiple embeddings to the store.PgVectorEmbeddingStore.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.pinecone
Modifier and TypeMethodDescriptionPineconeEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
-
Uses of Embedding in dev.langchain4j.store.embedding.qdrant
Modifier and TypeMethodDescriptionQdrantEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
QdrantEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) -
Uses of Embedding in dev.langchain4j.store.embedding.redis
Modifier and TypeMethodDescriptionRedisEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
RedisEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) -
Uses of Embedding in dev.langchain4j.store.embedding.tablestore
Modifier and TypeMethodDescriptionTablestoreEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
protected void
TablestoreEmbeddingStore.innerAdd
(String id, Embedding embedding, TextSegment textSegment) -
Uses of Embedding in dev.langchain4j.store.embedding.vearch
Modifier and TypeMethodDescriptionVearchEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
-
Uses of Embedding in dev.langchain4j.store.embedding.vespa
Modifier and TypeMethodDescriptionVespaEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
Adds a new embedding with provided ID to the store.VespaEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) Finds the most relevant (closest in space) embeddings to the provided reference embedding. -
Uses of Embedding in dev.langchain4j.store.embedding.weaviate
Modifier and TypeMethodDescriptionWeaviateEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) void
Adds a new embedding with provided ID to the store.
EmbeddingStore.search(EmbeddingSearchRequest)
instead.