Class: RubyLLM::Turbovec::IdMapIndex
- Inherits:
-
Object
- Object
- RubyLLM::Turbovec::IdMapIndex
- Defined in:
- sig/ruby_llm/turbovec.rbs
Class Method Summary collapse
Instance Method Summary collapse
- #add_with_ids ⇒ void
- #add_with_ids_2d ⇒ void
- #bit_width ⇒ ::Integer
- #contains? ⇒ Boolean
- #dim ⇒ ::Integer
- #dim_opt ⇒ ::Integer?
- #empty? ⇒ Boolean
- #len ⇒ ::Integer
- #prepare ⇒ void
- #remove ⇒ Boolean
- #search ⇒ [::Array[::Float], ::Array[::Integer]]
- #search_with_allowlist ⇒ [::Array[::Float], ::Array[::Integer]]
- #write ⇒ void
Class Method Details
.load ⇒ IdMapIndex
36 |
# File 'sig/ruby_llm/turbovec.rbs', line 36
def self.load: (::String) -> IdMapIndex
|
.new ⇒ IdMapIndex
34 |
# File 'sig/ruby_llm/turbovec.rbs', line 34
def self.new: (::Integer, ::Integer) -> IdMapIndex
|
.new_lazy ⇒ IdMapIndex
35 |
# File 'sig/ruby_llm/turbovec.rbs', line 35
def self.new_lazy: (::Integer) -> IdMapIndex
|
Instance Method Details
#add_with_ids ⇒ void
This method returns an undefined value.
38 |
# File 'sig/ruby_llm/turbovec.rbs', line 38
def add_with_ids: (::Array[::Float], ::Array[::Integer]) -> void
|
#add_with_ids_2d ⇒ void
This method returns an undefined value.
39 |
# File 'sig/ruby_llm/turbovec.rbs', line 39
def add_with_ids_2d: (::Array[::Float], ::Integer, ::Array[::Integer]) -> void
|
#bit_width ⇒ ::Integer
50 |
# File 'sig/ruby_llm/turbovec.rbs', line 50
def bit_width: () -> ::Integer
|
#contains? ⇒ Boolean
43 |
# File 'sig/ruby_llm/turbovec.rbs', line 43
def contains?: (::Integer) -> bool
|
#dim ⇒ ::Integer
48 |
# File 'sig/ruby_llm/turbovec.rbs', line 48
def dim: () -> ::Integer
|
#dim_opt ⇒ ::Integer?
49 |
# File 'sig/ruby_llm/turbovec.rbs', line 49
def dim_opt: () -> ::Integer?
|
#empty? ⇒ Boolean
47 |
# File 'sig/ruby_llm/turbovec.rbs', line 47
def empty?: () -> bool
|
#len ⇒ ::Integer
46 |
# File 'sig/ruby_llm/turbovec.rbs', line 46
def len: () -> ::Integer
|
#prepare ⇒ void
This method returns an undefined value.
44 |
# File 'sig/ruby_llm/turbovec.rbs', line 44
def prepare: () -> void
|
#remove ⇒ Boolean
40 |
# File 'sig/ruby_llm/turbovec.rbs', line 40
def remove: (::Integer) -> bool
|
#search ⇒ [::Array[::Float], ::Array[::Integer]]
41 |
# File 'sig/ruby_llm/turbovec.rbs', line 41
def search: (::Array[::Float], ::Integer) -> [::Array[::Float], ::Array[::Integer]]
|
#search_with_allowlist ⇒ [::Array[::Float], ::Array[::Integer]]
42 |
# File 'sig/ruby_llm/turbovec.rbs', line 42
def search_with_allowlist: (::Array[::Float], ::Integer, ::Array[::Integer]?) -> [::Array[::Float], ::Array[::Integer]]
|
#write ⇒ void
This method returns an undefined value.
45 |
# File 'sig/ruby_llm/turbovec.rbs', line 45
def write: (::String) -> void
|