Interface ChunkedInference


public interface ChunkedInference
  • Method Details

    • chunksAsMatchedTextAndByteReference

      Iterator<ChunkedInference.Chunk> chunksAsMatchedTextAndByteReference(XContent xcontent) throws IOException
      Implementations of this function serialize their embeddings to BytesReference for storage in semantic text fields.
      Parameters:
      xcontent - provided by the SemanticTextField
      Returns:
      an iterator of the serialized ChunkedInference.Chunk which includes the matched text (input) and bytes reference (output/embedding).
      Throws:
      IOException