@@ -77,7 +77,7 @@ def vadd(
77
77
``numlinks`` sets the number of links to create for the vector.
78
78
If not provided, the default number of links is used.
79
79
80
- For more information see https://redis.io/commands/vadd
80
+ For more information, see https://redis.io/commands/vadd.
81
81
"""
82
82
if not vector or not element :
83
83
raise DataError ("Both vector and element must be provided" )
@@ -144,19 +144,19 @@ def vsim(
144
144
145
145
``ef`` sets the exploration factor.
146
146
147
- ``filter`` sets filter that should be applied for the search.
147
+ ``filter`` sets the filter that should be applied for the search.
148
148
149
149
``filter_ef`` sets the max filtering effort.
150
150
151
- ``truth`` when enabled forces the command to perform linear scan.
151
+ ``truth`` when enabled, forces the command to perform a linear scan.
152
152
153
153
``no_thread`` when enabled forces the command to execute the search
154
154
on the data structure in the main thread.
155
155
156
156
``epsilon`` floating point between 0 and 1, if specified will return
157
157
only elements with distance no further than the specified one.
158
158
159
- For more information see https://redis.io/commands/vsim
159
+ For more information, see https://redis.io/commands/vsim.
160
160
"""
161
161
162
162
if not input :
@@ -210,7 +210,7 @@ def vdim(self, key: KeyT) -> Union[Awaitable[int], int]:
210
210
211
211
Raises `redis.exceptions.ResponseError` if the vector set doesn't exist.
212
212
213
- For more information see https://redis.io/commands/vdim
213
+ For more information, see https://redis.io/commands/vdim.
214
214
"""
215
215
return self .execute_command (VDIM_CMD , key )
216
216
@@ -220,15 +220,15 @@ def vcard(self, key: KeyT) -> Union[Awaitable[int], int]:
220
220
221
221
Raises `redis.exceptions.ResponseError` if the vector set doesn't exist.
222
222
223
- For more information see https://redis.io/commands/vcard
223
+ For more information, see https://redis.io/commands/vcard.
224
224
"""
225
225
return self .execute_command (VCARD_CMD , key )
226
226
227
227
def vrem (self , key : KeyT , element : str ) -> Union [Awaitable [int ], int ]:
228
228
"""
229
229
Remove an element from a vector set.
230
230
231
- For more information see https://redis.io/commands/vrem
231
+ For more information, see https://redis.io/commands/vrem.
232
232
"""
233
233
return self .execute_command (VREM_CMD , key , element )
234
234
@@ -242,10 +242,10 @@ def vemb(
242
242
Get the approximated vector of an element ``element`` from vector set ``key``.
243
243
244
244
``raw`` is a boolean flag that indicates whether to return the
245
- interal representation used by the vector.
245
+ internal representation used by the vector.
246
246
247
247
248
- For more information see https://redis.io/commands/vembed
248
+ For more information, see https://redis.io/commands/vemb.
249
249
"""
250
250
options = {}
251
251
pieces = []
@@ -293,7 +293,7 @@ def vlinks(
293
293
If the ``WITHSCORES`` option is provided, the result is a list of dicts,
294
294
where each dict contains the neighbors for one level, with the scores as values.
295
295
296
- For more information see https://redis.io/commands/vlinks
296
+ For more information, see https://redis.io/commands/vlinks
297
297
"""
298
298
options = {}
299
299
pieces = []
@@ -309,7 +309,7 @@ def vinfo(self, key: KeyT) -> Union[Awaitable[dict], dict]:
309
309
"""
310
310
Get information about a vector set.
311
311
312
- For more information see https://redis.io/commands/vinfo
312
+ For more information, see https://redis.io/commands/vinfo.
313
313
"""
314
314
return self .execute_command (VINFO_CMD , key )
315
315
@@ -320,7 +320,7 @@ def vsetattr(
320
320
Associate or remove JSON attributes ``attributes`` of element ``element``
321
321
for vector set ``key``.
322
322
323
- For more information see https://redis.io/commands/vsetattr
323
+ For more information, see https://redis.io/commands/vsetattr
324
324
"""
325
325
if attributes is None :
326
326
attributes_json = "{}"
@@ -336,12 +336,12 @@ def vgetattr(
336
336
self , key : KeyT , element : str
337
337
) -> Union [Optional [Awaitable [dict ]], Optional [dict ]]:
338
338
"""
339
- Retrieve the JSON attributes of an element ``elemet `` for vector set ``key``.
339
+ Retrieve the JSON attributes of an element ``element `` for vector set ``key``.
340
340
341
341
If the element does not exist, or if the vector set does not exist, None is
342
342
returned.
343
343
344
- For more information see https://redis.io/commands/vgetattr
344
+ For more information, see https://redis.io/commands/vgetattr.
345
345
"""
346
346
return self .execute_command (VGETATTR_CMD , key , element )
347
347
@@ -365,7 +365,7 @@ def vrandmember(
365
365
366
366
If the vector set does not exist, ``None`` is returned.
367
367
368
- For more information see https://redis.io/commands/vrandmember
368
+ For more information, see https://redis.io/commands/vrandmember.
369
369
"""
370
370
pieces = []
371
371
pieces .append (key )
0 commit comments