Skip to main content

agrag.chunking.rules

Chunking rules: which chunker a document gets, as data.

Classes:

  • Chunking – An ordered list of chunking rules and a fallback chunker.
  • ChunkingRule – A match and the chunker for the documents it matches.
  • RuleMatch – The documents a rule applies to.

Attributes:

  • DEFAULT_CHUNKING – The preset that Graph uses: docling loads go to DoclingChunker.