Class PassthroughScaffold
java.lang.Object
ai.pipestream.module.pipelineprobe.moduletest.scaffold.PassthroughScaffold
- All Implemented Interfaces:
StepScaffold
No-setup scaffold: the corpus doc already carries everything the step needs.
Used for embedder and semantic-graph, whose captured inputs (post-chunker /
post-embedder) already hold the directives, chunks, and vectors their
process() reads.-
Constructor Summary
ConstructorsConstructorDescriptionPassthroughScaffold(String module) Creates a passthrough scaffold for the given module. -
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
-
PassthroughScaffold
Creates a passthrough scaffold for the given module.- Parameters:
module- the module/step this scaffold targets
-
-
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
-