DataStoreDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig constructor

const DataStoreDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig({
  1. Input<int?>? chunkSize,
  2. Input<bool?>? includeAncestorHeadings,
})

Creates a new DataStoreDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig. chunkSize The token size limit for each chunk. includeAncestorHeadings Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss.

Implementation

const DataStoreDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig({
  this.chunkSize,
  this.includeAncestorHeadings,
});