ChunkConfig

Module: chunks.chunk_config
Import: from zerda.chunks import ChunkConfig

ChunkConfig is a dataclass holding all tunable parameters. Pass it to ChunkManager or any individual chunker.

See Configuration Reference for the full parameter table with descriptions, types, and defaults.

Python · 8 lines
from zerda.chunks import ChunkConfig

config = ChunkConfig(
    chunk_size=512,
    overlap=128,
    use_semantic_chunking=True,
    deduplication_enabled=True,
)

All fields have defaults, so ChunkConfig() with no arguments produces a sensible production configuration.

Related pages