Class DefaultChunkerConfig
java.lang.Object
ai.pipestream.module.pipelineprobe.pipelinecrawl.DefaultChunkerConfig
Builds the chunker module's
custom_config for a pipeline-crawl
run. Lifted out of PipelineCrawlerImpl so the orchestrator
doesn't carry hand-rolled Struct/Value building.
Today this exposes one preset: a sentence-10-3 chunker on the
body field, with embedder_configs populated only when
the embedder step is in the pipeline. When the harness adds a "Run
with N chunker strategies" UI option, this bean grows additional
builders; the orchestrator picks one by name.
Built using config_id + config pairs under a
chunker_configs list, scoped to a body directive. The
shape mirrors what the chunker module reads from
vector_set_directives.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.Structsentence10x3OnBody(boolean withEmbedder) Sentence chunker, 10 sentences per chunk, 3-sentence overlap, body-only.
-
Constructor Details
-
DefaultChunkerConfig
public DefaultChunkerConfig()Creates the default chunker config builder. Instances are managed by CDI.
-
-
Method Details
-
sentence10x3OnBody
public com.google.protobuf.Struct sentence10x3OnBody(boolean withEmbedder) Sentence chunker, 10 sentences per chunk, 3-sentence overlap, body-only.- Parameters:
withEmbedder- whentrue, the body directive carries anembedder_configslist with theminilmdefault config so the embedder accepts SPRs from this directive. Whenfalse, the field is omitted entirely — the chunker-only path doesn't need it, and an empty list trips the embedder's §21 "every directive MUST carry at least one NamedEmbedderConfig" check.- Returns:
- the chunker
custom_configstruct wrapping the bodyvector_set_directives
-