Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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);

...