Class EmbeddingRequest
java.lang.Object
nl.dannyj.mistral.models.embedding.EmbeddingRequest
- All Implemented Interfaces:
Request
The EmbeddingRequest class represents a request to create embedding for a list of strings.
Most of the field descriptions are taken from the Mistral API documentation.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEmbeddingRequest
(String model, List<String> input) Creates a newEmbeddingRequest
instance. -
Method Summary
-
Constructor Details
-
EmbeddingRequest
Creates a newEmbeddingRequest
instance.- Parameters:
model
- The model ID.input
- The list of strings to embed. Each entry will be embedded separately.
-
EmbeddingRequest
public EmbeddingRequest()
-
-
Method Details
-
builder
-
getModel
The ID of the model to use for this request.- Returns:
- The model ID.
-
getInput
The list of strings to embed.- Returns:
- The list of strings to embed.
-
setModel
The ID of the model to use for this request.- Parameters:
model
- The model ID.
-
setInput
The list of strings to embed.- Parameters:
input
- The list of strings to embed. Each entry will be embedded separately.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-