Class WatsonxGatewayEmbeddingModel

java.lang.Object
dev.langchain4j.model.watsonx.WatsonxGatewayEmbeddingModel
All Implemented Interfaces:
EmbeddingModel

public class WatsonxGatewayEmbeddingModel extends Object implements EmbeddingModel
A EmbeddingModel implementation that integrates the IBM watsonx.ai Model Gateway with LangChain4j.

Example usage:

EmbeddingModel embeddingModel = WatsonxGatewayEmbeddingModel.builder()
    .baseUrl("https://...") // or use CloudRegion
    .apiKey("...")
    .modelName("text-embedding-3-small")
    .build();