Record Class InferenceStringGroup

java.lang.Object
java.lang.Record
org.elasticsearch.inference.InferenceStringGroup
Record Components:
inferenceStrings - the list of InferenceString which should result in generating a single embedding vector
All Implemented Interfaces:
Writeable, ToXContent, ToXContentObject

public record InferenceStringGroup(List<InferenceString> inferenceStrings) extends Record implements Writeable, ToXContentObject
This class represents a group of one or more InferenceString which will produce a single embedding when passed to an embedding provider. Conceptually, this object is equivalent to a "content" object in the embedding request, e.g.
 "input": {
   "content": [
     {"type": "text", "format": "text", "value": "text input"},
     {"type": "image", "format": "base64", "value": "data:image/png;base64,..."}
   ]
 }