Package-level declarations

Types

Link copied to clipboard
class ContentChunker(maxChunkSize: Int = 1500, overlapSize: Int = 200, minChunkSize: Int = 2000)

Converts MaterializedContainerSection objects into Chunk objects with intelligent text splitting.

Link copied to clipboard

Implemented by services that can retrieve Chunks by id.

Link copied to clipboard
data class DefaultMaterializedContainerSection(val id: String, val uri: String? = null, val title: String, val children: List<MaterializedSection>, val parentId: String? = null, val metadata: Map<String, Any?> = emptyMap()) : MaterializedContainerSection
Link copied to clipboard
interface Ingester
Link copied to clipboard
data class IngestionResult(val storesWrittenTo: Set<String>, val chunkIds: List<String>)
Link copied to clipboard
data class MaterializedDocument(val id: String, val uri: String? = null, val title: String, val children: List<MaterializedSection>, val metadata: Map<String, Any?> = emptyMap()) : MaterializedContainerSection, ContentRoot
Link copied to clipboard
class MultiIngester(val ragServices: List<WritableRagService>, val splitter: <Error class: unknown class> = TokenTextSplitter()) : Ingester

Write to all RAG services that implement com.embabel.agent.rag.WritableRagService. Users can override the org.springframework.ai.transformer.splitter.TextSplitter to control how text is split into documents.