MCPcopy
hub / github.com/redis/redis-py / vadd

Method vadd

redis/commands/vectorset/commands.py:74–85  ·  view source on GitHub ↗
(
        self: SyncClientProtocol,
        key: KeyT,
        vector: list[float] | bytes,
        element: str,
        reduce_dim: int | None = None,
        cas: bool | None = False,
        quantization: QuantizationOptions | None = None,
        ef: Number | None = None,
        attributes: dict | str | None = None,
        numlinks: int | None = None,
    )

Source from the content-addressed store, hash-verified

72
73 @overload
74 def vadd(
75 self: SyncClientProtocol,
76 key: KeyT,
77 vector: list[float] | bytes,
78 element: str,
79 reduce_dim: int | None = None,
80 cas: bool | None = False,
81 quantization: QuantizationOptions | None = None,
82 ef: Number | None = None,
83 attributes: dict | str | None = None,
84 numlinks: int | None = None,
85 ) -> int: ...
86
87 @overload
88 def vadd(

Callers 15

dt_vec_set.pyFile · 0.80
test_add_elem_casFunction · 0.80
test_add_elem_no_quantFunction · 0.80
test_add_elem_bin_quantFunction · 0.80
test_add_elem_q8_quantFunction · 0.80
test_add_elem_efFunction · 0.80
test_add_elem_with_attrFunction · 0.80
test_vsim_countFunction · 0.80

Calls 4

DataErrorClass · 0.90
extendMethod · 0.45
appendMethod · 0.45
execute_commandMethod · 0.45

Tested by 15

test_add_elem_casFunction · 0.64
test_add_elem_no_quantFunction · 0.64
test_add_elem_bin_quantFunction · 0.64
test_add_elem_q8_quantFunction · 0.64
test_add_elem_efFunction · 0.64
test_add_elem_with_attrFunction · 0.64
test_vsim_countFunction · 0.64
test_vsim_with_scoresFunction · 0.64