GoodMem
ReferenceClient SDKsGo SDKConfiguration

RecursiveChunkingConfiguration Configuration

RecursiveChunkingConfiguration Configuration documentation for Go SDK

Properties

NameTypeDescriptionNotes
ChunkSizeint32Maximum size of a chunk (should be ≤ context window)
ChunkOverlapint32Sliding overlap between chunks
SeparatorsPointer to []stringHierarchical separator list (order = preference)[optional]
KeepStrategySeparatorKeepStrategy
SeparatorIsRegexPointer to NullableBoolWhether separators are regex patterns[optional]
LengthMeasurementLengthMeasurement

Methods

NewRecursiveChunkingConfiguration

func NewRecursiveChunkingConfiguration(chunkSize int32, chunkOverlap int32, keepStrategy SeparatorKeepStrategy, lengthMeasurement LengthMeasurement, ) *RecursiveChunkingConfiguration

NewRecursiveChunkingConfiguration instantiates a new RecursiveChunkingConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewRecursiveChunkingConfigurationWithDefaults

func NewRecursiveChunkingConfigurationWithDefaults() *RecursiveChunkingConfiguration

NewRecursiveChunkingConfigurationWithDefaults instantiates a new RecursiveChunkingConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetChunkSize

func (o *RecursiveChunkingConfiguration) GetChunkSize() int32

GetChunkSize returns the ChunkSize field if non-nil, zero value otherwise.

GetChunkSizeOk

func (o *RecursiveChunkingConfiguration) GetChunkSizeOk() (*int32, bool)

GetChunkSizeOk returns a tuple with the ChunkSize field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetChunkSize

func (o *RecursiveChunkingConfiguration) SetChunkSize(v int32)

SetChunkSize sets ChunkSize field to given value.

GetChunkOverlap

func (o *RecursiveChunkingConfiguration) GetChunkOverlap() int32

GetChunkOverlap returns the ChunkOverlap field if non-nil, zero value otherwise.

GetChunkOverlapOk

func (o *RecursiveChunkingConfiguration) GetChunkOverlapOk() (*int32, bool)

GetChunkOverlapOk returns a tuple with the ChunkOverlap field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetChunkOverlap

func (o *RecursiveChunkingConfiguration) SetChunkOverlap(v int32)

SetChunkOverlap sets ChunkOverlap field to given value.

GetSeparators

func (o *RecursiveChunkingConfiguration) GetSeparators() []string

GetSeparators returns the Separators field if non-nil, zero value otherwise.

GetSeparatorsOk

func (o *RecursiveChunkingConfiguration) GetSeparatorsOk() (*[]string, bool)

GetSeparatorsOk returns a tuple with the Separators field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSeparators

func (o *RecursiveChunkingConfiguration) SetSeparators(v []string)

SetSeparators sets Separators field to given value.

HasSeparators

func (o *RecursiveChunkingConfiguration) HasSeparators() bool

HasSeparators returns a boolean if a field has been set.

SetSeparatorsNil

func (o *RecursiveChunkingConfiguration) SetSeparatorsNil(b bool)

SetSeparatorsNil sets the value for Separators to be an explicit nil

UnsetSeparators

func (o *RecursiveChunkingConfiguration) UnsetSeparators()

UnsetSeparators ensures that no value is present for Separators, not even an explicit nil

GetKeepStrategy

func (o *RecursiveChunkingConfiguration) GetKeepStrategy() SeparatorKeepStrategy

GetKeepStrategy returns the KeepStrategy field if non-nil, zero value otherwise.

GetKeepStrategyOk

func (o *RecursiveChunkingConfiguration) GetKeepStrategyOk() (*SeparatorKeepStrategy, bool)

GetKeepStrategyOk returns a tuple with the KeepStrategy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetKeepStrategy

func (o *RecursiveChunkingConfiguration) SetKeepStrategy(v SeparatorKeepStrategy)

SetKeepStrategy sets KeepStrategy field to given value.

GetSeparatorIsRegex

func (o *RecursiveChunkingConfiguration) GetSeparatorIsRegex() bool

GetSeparatorIsRegex returns the SeparatorIsRegex field if non-nil, zero value otherwise.

GetSeparatorIsRegexOk

func (o *RecursiveChunkingConfiguration) GetSeparatorIsRegexOk() (*bool, bool)

GetSeparatorIsRegexOk returns a tuple with the SeparatorIsRegex field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSeparatorIsRegex

func (o *RecursiveChunkingConfiguration) SetSeparatorIsRegex(v bool)

SetSeparatorIsRegex sets SeparatorIsRegex field to given value.

HasSeparatorIsRegex

func (o *RecursiveChunkingConfiguration) HasSeparatorIsRegex() bool

HasSeparatorIsRegex returns a boolean if a field has been set.

SetSeparatorIsRegexNil

func (o *RecursiveChunkingConfiguration) SetSeparatorIsRegexNil(b bool)

SetSeparatorIsRegexNil sets the value for SeparatorIsRegex to be an explicit nil

UnsetSeparatorIsRegex

func (o *RecursiveChunkingConfiguration) UnsetSeparatorIsRegex()

UnsetSeparatorIsRegex ensures that no value is present for SeparatorIsRegex, not even an explicit nil

GetLengthMeasurement

func (o *RecursiveChunkingConfiguration) GetLengthMeasurement() LengthMeasurement

GetLengthMeasurement returns the LengthMeasurement field if non-nil, zero value otherwise.

GetLengthMeasurementOk

func (o *RecursiveChunkingConfiguration) GetLengthMeasurementOk() (*LengthMeasurement, bool)

GetLengthMeasurementOk returns a tuple with the LengthMeasurement field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLengthMeasurement

func (o *RecursiveChunkingConfiguration) SetLengthMeasurement(v LengthMeasurement)

SetLengthMeasurement sets LengthMeasurement field to given value.

↑ Back to Go SDK ↑ Back to Go SDK ↑ Back to Go SDK