Class VoyageAiEmbeddingRequestParameters

java.lang.Object
dev.langchain4j.model.embedding.request.DefaultEmbeddingRequestParameters
dev.langchain4j.model.voyageai.VoyageAiEmbeddingRequestParameters
All Implemented Interfaces:
EmbeddingRequestParameters

@Experimental public class VoyageAiEmbeddingRequestParameters extends DefaultEmbeddingRequestParameters
Voyage AI-specific EmbeddingRequestParameters, adding the parameters accepted by the Voyage AI embeddings API on top of the common inputType.

TRUNCATION controls what happens to an input that is longer than the model's context: it is truncated (true, the default on Voyage's side) or the call fails (false).

ENCODING_FORMAT ("base64") only asks Voyage to compress the embeddings in the response; the embeddings handed back to the caller are the same either way. It is carried only by the text embeddings request - Voyage's multimodal endpoint has an equivalent output_encoding field, which this integration does not send - so a multimodal model does not declare it in EmbeddingModel.supportedParameters() and rejects it rather than accepting a value that would be dropped.

Since:
1.21.0