class

OpenAI::CreateVectorStoreFileBatchRequest

Inherits JSON::Serializable < Reference < Object

Constructors

new(file_ids : Array(String) | Nil = nil, files : Array(CreateVectorStoreFileRequest) | Nil = nil, chunking_strategy : ChunkingStrategyRequestParam | Nil = nil, attributes : VectorStoreFileAttributes | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

attributes
Source
attributes=(attributes : VectorStoreFileAttributes | Nil)
Source
chunking_strategy
Source
chunking_strategy=(chunking_strategy : ChunkingStrategyRequestParam | Nil)
Source
file_ids

A list of File IDs that the vector store should use. Useful for tools like file_search that can access files. If attributes or chunking_strategy are provided, they will be applied to all files in the batch. Mutually exclusive with files.

Source
file_ids=(file_ids : Array(String) | Nil)

A list of File IDs that the vector store should use. Useful for tools like file_search that can access files. If attributes or chunking_strategy are provided, they will be applied to all files in the batch. Mutually exclusive with files.

Source
files

A list of objects that each include a file_id plus optional attributes or chunking_strategy. Use this when you need to override metadata for specific files. The global attributes or chunking_strategy will be ignored and must be specified for each file. Mutually exclusive with file_ids.

Source
files=(files : Array(CreateVectorStoreFileRequest) | Nil)

A list of objects that each include a file_id plus optional attributes or chunking_strategy. Use this when you need to override metadata for specific files. The global attributes or chunking_strategy will be ignored and must be specified for each file. Mutually exclusive with file_ids.

Source