ChunkingConfig

org.llm4s.chunking.ChunkingConfig
See theChunkingConfig companion object
final case class ChunkingConfig(targetSize: Int, maxSize: Int, overlap: Int, minChunkSize: Int, preserveCodeBlocks: Boolean, preserveHeadings: Boolean)

Configuration for document chunking.

Value parameters

maxSize

Maximum chunk size (hard limit, will force split)

minChunkSize

Minimum size for a chunk (smaller chunks are merged)

overlap

Characters to overlap between chunks

preserveCodeBlocks

Keep code blocks intact if possible

preserveHeadings

Include heading context in metadata

targetSize

Target chunk size in characters (soft limit)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product