All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.discoveryengine.kotlin.outputs.DataStoreDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.discoveryengine.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress

/**
 *
 * @property chunkSize The token size limit for each chunk.
 * Supported values: 100-500 (inclusive). Default value: 500.
 * @property includeAncestorHeadings Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss.
 * Default value: False.
 */
public data class DataStoreDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig(
    public val chunkSize: Int? = null,
    public val includeAncestorHeadings: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.discoveryengine.outputs.DataStoreDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig): DataStoreDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig =
            DataStoreDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig(
                chunkSize = javaType.chunkSize().map({ args0 -> args0 }).orElse(null),
                includeAncestorHeadings = javaType.includeAncestorHeadings().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy