Class ChunkerScaffold
java.lang.Object
ai.pipestream.module.pipelineprobe.moduletest.scaffold.ChunkerScaffold
- All Implemented Interfaces:
StepScaffold
Chunker scaffold: the raw chunker input (echo output) carries no vector-set
directives, so the chunker no-ops ("nothing to chunk"). In the real pipeline
the engine's
NodeConfigDirectivePopulator stamps directives onto the
doc from the chunker node's custom_config.json_config — the door
bypasses the engine, so this scaffold performs the SAME stamp with the SAME
config: DefaultChunkerConfig.sentence10x3OnBody(boolean)(true), the exact
preset every pipeline-crawl runs (sentence-10-3 on body × minilm +
paraphrase-minilm), converted Struct→proto the way the engine converts it.-
Constructor Summary
ConstructorsConstructorDescriptionChunkerScaffold(DefaultChunkerConfig chunkerConfig) Creates the chunker scaffold, precomputing the vector-set directives from thesentence10x3OnBody(true)preset so each wrapped doc carries the same directives the engine would stamp. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface StepScaffold
cleanup, corpusDoc, corpusName, corpusSize, info, prepare
-
Constructor Details
-
ChunkerScaffold
Creates the chunker scaffold, precomputing the vector-set directives from thesentence10x3OnBody(true)preset so each wrapped doc carries the same directives the engine would stamp.- Parameters:
chunkerConfig- the default chunker config used to derive the directives
-
-
Method Details
-
module
Description copied from interface:StepScaffoldThe module/step this scaffold targets (e.g."chunker").- Specified by:
modulein interfaceStepScaffold- Returns:
- the module/step name this scaffold targets
-
wrap
public ai.pipestream.data.v1.PipeStream wrap(ai.pipestream.data.v1.PipeDoc doc) Description copied from interface:StepScaffoldTurn a corpus doc into the step's expected input PipeStream (directives, context_params, …).- Specified by:
wrapin interfaceStepScaffold- Parameters:
doc- the corpus document to wrap- Returns:
- the
PipeStreamshaped as the step expects
-