Class PipeDocOutputSummary
java.lang.Object
ai.pipestream.module.pipelineprobe.pipelinecrawl.PipeDocOutputSummary
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 Summary
Modifier and TypeMethodDescriptionstatic com.google.protobuf.StructtoStruct(ai.pipestream.data.v1.PipeDoc doc) Convertdocto a Struct with raw vectors stripped to their dimension.
-
Method Details
-
toStruct
public static com.google.protobuf.Struct toStruct(ai.pipestream.data.v1.PipeDoc doc) throws com.google.protobuf.InvalidProtocolBufferException Convertdocto a Struct with raw vectors stripped to their dimension.- Parameters:
doc- the final document to render- Returns:
- a
Structof 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
-