Uses of Class
dev.langchain4j.model.voyageai.VoyageAiEmbeddingModel.Builder
Packages that use VoyageAiEmbeddingModel.Builder
-
Uses of VoyageAiEmbeddingModel.Builder in dev.langchain4j.model.voyageai
Methods in dev.langchain4j.model.voyageai that return VoyageAiEmbeddingModel.BuilderModifier and TypeMethodDescriptionSets the Voyage AI API key used to authenticate requests.Sets the base URL of the Voyage AI API.VoyageAiEmbeddingModel.builder()VoyageAiEmbeddingModel.Builder.customHeaders(Supplier<Map<String, String>> customHeadersSupplier) Sets a supplier for custom HTTP headers.VoyageAiEmbeddingModel.Builder.customHeaders(Map<String, String> customHeaders) Sets custom HTTP headers.VoyageAiEmbeddingModel.Builder.encodingFormat(String encodingFormat) Format in which the embeddings are encoded.VoyageAiEmbeddingModel.Builder.httpClientBuilder(HttpClientBuilder httpClientBuilder) Sets a custom HTTP client builder, allowing fine-grained control over the HTTP client configuration such as timeouts and proxy settings.Type of the input text.VoyageAiEmbeddingModel.Builder.logger(org.slf4j.Logger logger) VoyageAiEmbeddingModel.Builder.logRequests(Boolean logRequests) Enables debug logging of request bodies sent to the Voyage AI API.VoyageAiEmbeddingModel.Builder.logResponses(Boolean logResponses) Enables debug logging of response bodies received from the Voyage AI API.VoyageAiEmbeddingModel.Builder.maxRetries(Integer maxRetries) Sets the maximum number of retries on transient errors.VoyageAiEmbeddingModel.Builder.maxSegmentsPerBatch(Integer maxSegmentsPerBatch) Sets the maximum number of text segments to include in a single embedding batch request.VoyageAiEmbeddingModel.Builder.modelName(VoyageAiEmbeddingModelName modelName) Name of the model.Name of the model.Sets the HTTP request timeout.VoyageAiEmbeddingModel.Builder.truncation(Boolean truncation) Whether to truncate the input texts to fit within the context length.Constructors in dev.langchain4j.model.voyageai with parameters of type VoyageAiEmbeddingModel.Builder