@@ -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" )
@@ -143,16 +143,16 @@ def vsim(
143
143
144
144
``ef`` sets the exploration factor.
145
145
146
- ``filter`` sets filter that should be applied for the search.
146
+ ``filter`` sets the filter that should be applied for the search.
147
147
148
148
``filter_ef`` sets the max filtering effort.
149
149
150
- ``truth`` when enabled forces the command to perform linear scan.
150
+ ``truth`` when enabled, forces the command to perform a linear scan.
151
151
152
152
``no_thread`` when enabled forces the command to execute the search
153
153
on the data structure in the main thread.
154
154
155
- For more information see https://redis.io/commands/vsim
155
+ For more information, see https://redis.io/commands/vsim.
156
156
"""
157
157
158
158
if not input :
@@ -203,7 +203,7 @@ def vdim(self, key: KeyT) -> Union[Awaitable[int], int]:
203
203
204
204
Raises `redis.exceptions.ResponseError` if the vector set doesn't exist.
205
205
206
- For more information see https://redis.io/commands/vdim
206
+ For more information, see https://redis.io/commands/vdim.
207
207
"""
208
208
return self .execute_command (VDIM_CMD , key )
209
209
@@ -213,15 +213,15 @@ def vcard(self, key: KeyT) -> Union[Awaitable[int], int]:
213
213
214
214
Raises `redis.exceptions.ResponseError` if the vector set doesn't exist.
215
215
216
- For more information see https://redis.io/commands/vcard
216
+ For more information, see https://redis.io/commands/vcard.
217
217
"""
218
218
return self .execute_command (VCARD_CMD , key )
219
219
220
220
def vrem (self , key : KeyT , element : str ) -> Union [Awaitable [int ], int ]:
221
221
"""
222
222
Remove an element from a vector set.
223
223
224
- For more information see https://redis.io/commands/vrem
224
+ For more information, see https://redis.io/commands/vrem.
225
225
"""
226
226
return self .execute_command (VREM_CMD , key , element )
227
227
@@ -235,10 +235,10 @@ def vemb(
235
235
Get the approximated vector of an element ``element`` from vector set ``key``.
236
236
237
237
``raw`` is a boolean flag that indicates whether to return the
238
- interal representation used by the vector.
238
+ internal representation used by the vector.
239
239
240
240
241
- For more information see https://redis.io/commands/vembed
241
+ For more information, see https://redis.io/commands/vembe.d.
242
242
"""
243
243
options = {}
244
244
pieces = []
@@ -286,7 +286,7 @@ def vlinks(
286
286
If the ``WITHSCORES`` option is provided, the result is a list of dicts,
287
287
where each dict contains the neighbors for one level, with the scores as values.
288
288
289
- For more information see https://redis.io/commands/vlinks
289
+ For more information, see https://redis.io/commands/vlinks
290
290
"""
291
291
options = {}
292
292
pieces = []
@@ -302,7 +302,7 @@ def vinfo(self, key: KeyT) -> Union[Awaitable[dict], dict]:
302
302
"""
303
303
Get information about a vector set.
304
304
305
- For more information see https://redis.io/commands/vinfo
305
+ For more information, see https://redis.io/commands/vinfo.
306
306
"""
307
307
return self .execute_command (VINFO_CMD , key )
308
308
@@ -313,7 +313,7 @@ def vsetattr(
313
313
Associate or remove JSON attributes ``attributes`` of element ``element``
314
314
for vector set ``key``.
315
315
316
- For more information see https://redis.io/commands/vsetattr
316
+ For more information, see https://redis.io/commands/vsetattr
317
317
"""
318
318
if attributes is None :
319
319
attributes_json = "{}"
@@ -329,12 +329,12 @@ def vgetattr(
329
329
self , key : KeyT , element : str
330
330
) -> Union [Optional [Awaitable [dict ]], Optional [dict ]]:
331
331
"""
332
- Retrieve the JSON attributes of an element ``elemet `` for vector set ``key``.
332
+ Retrieve the JSON attributes of an element ``element `` for vector set ``key``.
333
333
334
334
If the element does not exist, or if the vector set does not exist, None is
335
335
returned.
336
336
337
- For more information see https://redis.io/commands/vgetattr
337
+ For more information, see https://redis.io/commands/vgetattr.
338
338
"""
339
339
return self .execute_command (VGETATTR_CMD , key , element )
340
340
@@ -358,7 +358,7 @@ def vrandmember(
358
358
359
359
If the vector set does not exist, ``None`` is returned.
360
360
361
- For more information see https://redis.io/commands/vrandmember
361
+ For more information, see https://redis.io/commands/vrandmember.
362
362
"""
363
363
pieces = []
364
364
pieces .append (key )
0 commit comments