GoodMem
ReferenceClient SDKsPython SDKConfiguration

SentenceChunkingConfiguration Configuration

SentenceChunkingConfiguration Configuration documentation for Python SDK

Sentence-based chunking strategy with language detection support

Properties

NameTypeDescriptionNotes
max_chunk_sizeintMaximum size of a chunk
min_chunk_sizeintMinimum size before creating a new chunk
enable_language_detectionboolWhether to detect language for better segmentation[optional]
length_measurementLengthMeasurement

Example

from goodmem_client.models.sentence_chunking_configuration import SentenceChunkingConfiguration

# TODO update the JSON string below
json = "{}"
# create an instance of SentenceChunkingConfiguration from a JSON string
sentence_chunking_configuration_instance = SentenceChunkingConfiguration.from_json(json)
# print the JSON string representation of the object
print(SentenceChunkingConfiguration.to_json())

# convert the object into a dict
sentence_chunking_configuration_dict = sentence_chunking_configuration_instance.to_dict()
# create an instance of SentenceChunkingConfiguration from a dict
sentence_chunking_configuration_from_dict = SentenceChunkingConfiguration.from_dict(sentence_chunking_configuration_dict)

↑ Back to Python SDK ↑ Back to Python SDK ↑ Back to Python SDK

On this page