org.llm4s.chunking.ChunkMetadata
See theChunkMetadata companion object
final case class ChunkMetadata(sourceFile: Option[String], startOffset: Option[Int], endOffset: Option[Int], headings: Seq[String], isCodeBlock: Boolean, language: Option[String])
Metadata about a chunk's origin and structure.
Value parameters
- endOffset
-
End character offset
- headings
-
Heading hierarchy (e.g., Seq("Chapter 1", "Section 2"))
- isCodeBlock
-
Whether chunk is from a code block
- language
-
Code language if applicable
- sourceFile
-
Original file name
- startOffset
-
Character offset in source
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article