Class EmbeddingRequest
java.lang.Object
dev.langchain4j.model.embedding.request.EmbeddingRequest
A request to an
EmbeddingModel, containing a batch of
EmbeddingInputs to embed and the per-call parameters.
The request has two dimensions:
- the batch dimension — the list of
EmbeddingInputs, each producing one embedding; - the interleaving dimension — the list of
Contentparts inside eachEmbeddingInput, fused into a single embedding (for multimodal models).
Strings and TextSegments directly, each
becoming a single-text EmbeddingInput; the Content-based methods unlock multimodal input.- Since:
- 1.18.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EmbeddingRequest.Builderbuilder()booleaninthashCode()inputs()The batch of inputs to embed; eachEmbeddingInputyields one embedding.The per-call parameters; nevernull(EmbeddingRequestParameters.EMPTYwhen none were set).toString()
-
Constructor Details
-
EmbeddingRequest
-
-
Method Details
-
inputs
The batch of inputs to embed; eachEmbeddingInputyields one embedding. -
parameters
The per-call parameters; nevernull(EmbeddingRequestParameters.EMPTYwhen none were set). -
modelName
-
dimensions
-
inputType
-
equals
-
hashCode
-
toString
-
builder
-