SentenceChunkingConfiguration Configuration
SentenceChunkingConfiguration Configuration documentation for Python SDK
Sentence-based chunking strategy with language detection support
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| max_chunk_size | int | Maximum size of a chunk | |
| min_chunk_size | int | Minimum size before creating a new chunk | |
| enable_language_detection | bool | Whether to detect language for better segmentation | [optional] |
| length_measurement | LengthMeasurement |
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