Module: OpenAI::Models::Beta::AssistantCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/beta/assistant_create_params.rb

Overview

The chunking strategy used to chunk the file(s). If not set, will use the auto strategy.

See Also:

Defined Under Namespace

Classes: Auto, Static

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

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

Methods included from Internal::Type::Converter

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

Class Method Details

.variantsArray(OpenAI::Models::Beta::AssistantCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Auto, OpenAI::Models::Beta::AssistantCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static)



# File 'lib/openai/models/beta/assistant_create_params.rb', line 363

Instance Method Details

#initialize(type: :auto) ⇒ void

The default strategy. This strategy currently uses a max_chunk_size_tokens of 800 and chunk_overlap_tokens of 400.

Parameters:

  • type (Symbol, :auto) (defaults to: :auto)

    Always auto.



# File 'lib/openai/models/beta/assistant_create_params.rb', line 308