Encode Request
var encodeRequest = EncodeRequest.builder()
.id("123")
.chunk("First chunk of text for the encoding")
.chunk("Second chunk of text for the prediction")
.build();
var result = client.encode(request);
The result
will return 200
for the status code and the corresponding list of vectors:
{
"id": 123,
"results": [[float-list], [float-list]],
"status": 200
}