GoodMemGoodMem
ReferenceSdkRustTypes

SentenceChunkingConfiguration

Rust struct goodmem::models::SentenceChunkingConfiguration: declaration, fields or variants, and implementations.

All types

Struct SentenceChunkingConfiguration

goodmem::models::SentenceChunkingConfiguration

Sentence-based chunking strategy with language detection support

pub struct SentenceChunkingConfiguration {
    pub max_chunk_size: i32,
    pub min_chunk_size: i32,
    pub enable_language_detection: Option<bool>,
    pub length_measurement: LengthMeasurement,
}

Referenced types: LengthMeasurement.

Fields

max_chunk_size

pub max_chunk_size: i32

Maximum size of a chunk Wire name: maxChunkSize.

min_chunk_size

pub min_chunk_size: i32

Minimum size before creating a new chunk Wire name: minChunkSize.

enable_language_detection

pub enable_language_detection: Option<bool>

Whether to detect language for better segmentation Wire name: enableLanguageDetection.

length_measurement

pub length_measurement: LengthMeasurement

How to measure chunk length Wire name: lengthMeasurement.

Implementations

validate

pub fn validate(&self) -> crate::Result<()>

Validate the request before sending, without making an HTTP call.

Trait implementations

  • Clone (derived)
  • Default (derived)
  • PartialEq (derived)
  • Serialize (derived)
  • impl<'de> Deserialize<'de> for SentenceChunkingConfiguration
  • impl std::fmt::Debug for SentenceChunkingConfiguration

On this page