Class PipeDocOutputSummary

java.lang.Object
ai.pipestream.module.pipelineprobe.pipelinecrawl.PipeDocOutputSummary

public final class PipeDocOutputSummary extends Object
Renders a final PipeDoc into a readable Struct for the UI's single-doc output panel.

Prints the whole document as JSON (title, body, parsed metadata, chunks + their text, semantic result configs, …) EXCEPT the raw embedding vectors: hundreds of 384-float arrays aren't eyeball-able, so each chunk's vector is replaced with its dimension (e.g. vector_dim: 384). For a parser- or chunker-only run there are no vectors, so the full content shows verbatim.

  • Method Details

    • toStruct

      public static com.google.protobuf.Struct toStruct(ai.pipestream.data.v1.PipeDoc doc) throws com.google.protobuf.InvalidProtocolBufferException
      Convert doc to a Struct with raw vectors stripped to their dimension.
      Parameters:
      doc - the final document to render
      Returns:
      a Struct of the document's JSON with embedding vectors replaced by their dimension
      Throws:
      com.google.protobuf.InvalidProtocolBufferException - if the document JSON cannot be produced or re-parsed