Class: OpenAI::Models::Beta::ThreadCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static::Static

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/beta/thread_create_params.rb

Overview

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(chunk_overlap_tokens: , max_chunk_size_tokens: ) ⇒ void

Parameters:

  • chunk_overlap_tokens (Integer) (defaults to: )

    The number of tokens that overlap between chunks. The default value is 400.

  • max_chunk_size_tokens (Integer) (defaults to: )

    The maximum number of tokens in each chunk. The default value is 800. The mini



# File 'lib/openai/models/beta/thread_create_params.rb', line 371

Instance Attribute Details

#chunk_overlap_tokensInteger

The number of tokens that overlap between chunks. The default value is 400.

Note that the overlap must not exceed half of max_chunk_size_tokens.

Returns:

  • (Integer)


362
# File 'lib/openai/models/beta/thread_create_params.rb', line 362

required :chunk_overlap_tokens, Integer

#max_chunk_size_tokensInteger

The maximum number of tokens in each chunk. The default value is 800. The minimum value is 100 and the maximum value is 4096.

Returns:

  • (Integer)


369
# File 'lib/openai/models/beta/thread_create_params.rb', line 369

required :max_chunk_size_tokens, Integer