...
var encodeRequest = EncodeRequest.builder()
.id("123")
.chunk("First chunk of text for the encoding")
.chunk("Second chunk of text for the prediction")
.model("sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2") // if this is null, the server will use the default model
.build();
var result = client.encode(request);
...