Send feedback
Class ChunkingConfig (3.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
ChunkingConfig ( mapping = None , * , ignore_unknown_fields = False , ** kwargs )
Serving config for chunking.
Attributes
Name
Description
chunk_size
int
Optional. The chunk sizes to use when
splitting documents, in order of level.
include_ancestor_headings
bool
Optional. Whether or not to include ancestor
headings when splitting.
semantic_chunking_group_size
bool
Optional. The number of tokens to group
together when evaluating semantic similarity.
THIS FIELD IS NOT YET USED.
breakpoint_percentile_threshold
int
Optional. The percentile of cosine
dissimilarity that must be exceeded between a
group of tokens and the next. The smaller this
number is, the more chunks will be generated.
THIS FIELD IS NOT YET USED.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class ChunkingConfig (3.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.5.0 (latest)](/python/docs/reference/documentai/latest/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [3.4.0](/python/docs/reference/documentai/3.4.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [3.3.0](/python/docs/reference/documentai/3.3.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [3.2.0](/python/docs/reference/documentai/3.2.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [3.1.0](/python/docs/reference/documentai/3.1.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [3.0.1](/python/docs/reference/documentai/3.0.1/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.35.0](/python/docs/reference/documentai/2.35.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.34.0](/python/docs/reference/documentai/2.34.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.33.0](/python/docs/reference/documentai/2.33.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.32.0](/python/docs/reference/documentai/2.32.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.30.0](/python/docs/reference/documentai/2.30.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.29.3](/python/docs/reference/documentai/2.29.3/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.28.0](/python/docs/reference/documentai/2.28.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.27.1](/python/docs/reference/documentai/2.27.1/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.26.0](/python/docs/reference/documentai/2.26.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.25.0](/python/docs/reference/documentai/2.25.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.24.2](/python/docs/reference/documentai/2.24.2/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.23.0](/python/docs/reference/documentai/2.23.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.22.0](/python/docs/reference/documentai/2.22.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.21.1](/python/docs/reference/documentai/2.21.1/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.20.2](/python/docs/reference/documentai/2.20.2/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.19.0](/python/docs/reference/documentai/2.19.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.18.0](/python/docs/reference/documentai/2.18.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.17.0](/python/docs/reference/documentai/2.17.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.16.1](/python/docs/reference/documentai/2.16.1/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.15.0](/python/docs/reference/documentai/2.15.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.14.0](/python/docs/reference/documentai/2.14.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.13.0](/python/docs/reference/documentai/2.13.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.12.0](/python/docs/reference/documentai/2.12.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.11.0](/python/docs/reference/documentai/2.11.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.10.0](/python/docs/reference/documentai/2.10.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.9.1](/python/docs/reference/documentai/2.9.1/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.8.0](/python/docs/reference/documentai/2.8.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.7.0](/python/docs/reference/documentai/2.7.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.6.0](/python/docs/reference/documentai/2.6.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.5.0](/python/docs/reference/documentai/2.5.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.4.1](/python/docs/reference/documentai/2.4.1/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.3.0](/python/docs/reference/documentai/2.3.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.2.0](/python/docs/reference/documentai/2.2.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.1.0](/python/docs/reference/documentai/2.1.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [2.0.3](/python/docs/reference/documentai/2.0.3/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [1.5.1](/python/docs/reference/documentai/1.5.1/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [1.4.2](/python/docs/reference/documentai/1.4.2/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [1.3.0](/python/docs/reference/documentai/1.3.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [1.2.1](/python/docs/reference/documentai/1.2.1/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [1.1.0](/python/docs/reference/documentai/1.1.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [1.0.0](/python/docs/reference/documentai/1.0.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [0.5.2](/python/docs/reference/documentai/0.5.2/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [0.4.0](/python/docs/reference/documentai/0.4.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [0.3.0](/python/docs/reference/documentai/0.3.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [0.2.0](/python/docs/reference/documentai/0.2.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig)\n- [0.1.0](/python/docs/reference/documentai/0.1.0/google.cloud.documentai_v1beta3.types.ProcessOptions.LayoutConfig.ChunkingConfig) \n\n ChunkingConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nServing config for chunking."]]