Class: OpenAI::Models::VectorStore

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/vector_store.rb

Overview

Defined Under Namespace

Modules: Status Classes: ExpiresAfter, FileCounts

Instance Attribute Summary collapse

Class Method 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, 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(cancelled: , completed: , failed: , in_progress: , total: ) ⇒ Object

Parameters:

  • cancelled (Integer) (defaults to: )

    The number of files that were cancelled.

  • completed (Integer) (defaults to: )

    The number of files that have been successfully processed.

  • failed (Integer) (defaults to: )

    The number of files that have failed to process.

  • in_progress (Integer) (defaults to: )

    The number of files that are currently being processed.

  • total (Integer) (defaults to: )

    The total number of files.



# File 'lib/openai/models/vector_store.rb', line 79

Instance Attribute Details

#created_atInteger

The Unix timestamp (in seconds) for when the vector store was created.

Returns:

  • (Integer)


17
# File 'lib/openai/models/vector_store.rb', line 17

required :created_at, Integer

#expires_afterOpenAI::Models::VectorStore::ExpiresAfter?

The expiration policy for a vector store.



71
# File 'lib/openai/models/vector_store.rb', line 71

optional :expires_after, -> { OpenAI::VectorStore::ExpiresAfter }

#expires_atInteger?

The Unix timestamp (in seconds) for when the vector store will expire.

Returns:

  • (Integer, nil)


77
# File 'lib/openai/models/vector_store.rb', line 77

optional :expires_at, Integer, nil?: true

#file_countsOpenAI::Models::VectorStore::FileCounts



22
# File 'lib/openai/models/vector_store.rb', line 22

required :file_counts, -> { OpenAI::VectorStore::FileCounts }

#idString

The identifier, which can be referenced in API endpoints.

Returns:

  • (String)


11
# File 'lib/openai/models/vector_store.rb', line 11

required :id, String

#last_active_atInteger?

The Unix timestamp (in seconds) for when the vector store was last active.

Returns:

  • (Integer, nil)


28
# File 'lib/openai/models/vector_store.rb', line 28

required :last_active_at, Integer, nil?: true

#metadataHash{Symbol=>String}?

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.

Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

Returns:

  • (Hash{Symbol=>String}, nil)


39
# File 'lib/openai/models/vector_store.rb', line 39

required :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true

#nameString

The name of the vector store.

Returns:

  • (String)


45
# File 'lib/openai/models/vector_store.rb', line 45

required :name, String

#objectSymbol, :vector_store

The object type, which is always ‘vector_store`.

Returns:

  • (Symbol, :vector_store)


51
# File 'lib/openai/models/vector_store.rb', line 51

required :object, const: :vector_store

#statusSymbol, OpenAI::Models::VectorStore::Status

The status of the vector store, which can be either ‘expired`, `in_progress`, or `completed`. A status of `completed` indicates that the vector store is ready for use.



59
# File 'lib/openai/models/vector_store.rb', line 59

required :status, enum: -> { OpenAI::VectorStore::Status }

#usage_bytesInteger

The total number of bytes used by the files in the vector store.

Returns:

  • (Integer)


65
# File 'lib/openai/models/vector_store.rb', line 65

required :usage_bytes, Integer

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/vector_store.rb', line 164