Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 60fd6f9

Browse files
Typos in vectorset commands.py (#3719)
* Typos in commands.py * Correct URL in vectorset commands.py
1 parent 2d0c9ba commit 60fd6f9

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

‎redis/commands/vectorset/commands.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def vadd(
7777
``numlinks`` sets the number of links to create for the vector.
7878
If not provided, the default number of links is used.
7979
80-
For more information see https://redis.io/commands/vadd
80+
For more information, see https://redis.io/commands/vadd.
8181
"""
8282
if not vector or not element:
8383
raise DataError("Both vector and element must be provided")
@@ -144,19 +144,19 @@ def vsim(
144144
145145
``ef`` sets the exploration factor.
146146
147-
``filter`` sets filter that should be applied for the search.
147+
``filter`` sets the filter that should be applied for the search.
148148
149149
``filter_ef`` sets the max filtering effort.
150150
151-
``truth`` when enabled forces the command to perform linear scan.
151+
``truth`` when enabled, forces the command to perform a linear scan.
152152
153153
``no_thread`` when enabled forces the command to execute the search
154154
on the data structure in the main thread.
155155
156156
``epsilon`` floating point between 0 and 1, if specified will return
157157
only elements with distance no further than the specified one.
158158
159-
For more information see https://redis.io/commands/vsim
159+
For more information, see https://redis.io/commands/vsim.
160160
"""
161161

162162
if not input:
@@ -210,7 +210,7 @@ def vdim(self, key: KeyT) -> Union[Awaitable[int], int]:
210210
211211
Raises `redis.exceptions.ResponseError` if the vector set doesn't exist.
212212
213-
For more information see https://redis.io/commands/vdim
213+
For more information, see https://redis.io/commands/vdim.
214214
"""
215215
return self.execute_command(VDIM_CMD, key)
216216

@@ -220,15 +220,15 @@ def vcard(self, key: KeyT) -> Union[Awaitable[int], int]:
220220
221221
Raises `redis.exceptions.ResponseError` if the vector set doesn't exist.
222222
223-
For more information see https://redis.io/commands/vcard
223+
For more information, see https://redis.io/commands/vcard.
224224
"""
225225
return self.execute_command(VCARD_CMD, key)
226226

227227
def vrem(self, key: KeyT, element: str) -> Union[Awaitable[int], int]:
228228
"""
229229
Remove an element from a vector set.
230230
231-
For more information see https://redis.io/commands/vrem
231+
For more information, see https://redis.io/commands/vrem.
232232
"""
233233
return self.execute_command(VREM_CMD, key, element)
234234

@@ -242,10 +242,10 @@ def vemb(
242242
Get the approximated vector of an element ``element`` from vector set ``key``.
243243
244244
``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.
246246
247247
248-
For more information see https://redis.io/commands/vembed
248+
For more information, see https://redis.io/commands/vemb.
249249
"""
250250
options = {}
251251
pieces = []
@@ -293,7 +293,7 @@ def vlinks(
293293
If the ``WITHSCORES`` option is provided, the result is a list of dicts,
294294
where each dict contains the neighbors for one level, with the scores as values.
295295
296-
For more information see https://redis.io/commands/vlinks
296+
For more information, see https://redis.io/commands/vlinks
297297
"""
298298
options = {}
299299
pieces = []
@@ -309,7 +309,7 @@ def vinfo(self, key: KeyT) -> Union[Awaitable[dict], dict]:
309309
"""
310310
Get information about a vector set.
311311
312-
For more information see https://redis.io/commands/vinfo
312+
For more information, see https://redis.io/commands/vinfo.
313313
"""
314314
return self.execute_command(VINFO_CMD, key)
315315

@@ -320,7 +320,7 @@ def vsetattr(
320320
Associate or remove JSON attributes ``attributes`` of element ``element``
321321
for vector set ``key``.
322322
323-
For more information see https://redis.io/commands/vsetattr
323+
For more information, see https://redis.io/commands/vsetattr
324324
"""
325325
if attributes is None:
326326
attributes_json = "{}"
@@ -336,12 +336,12 @@ def vgetattr(
336336
self, key: KeyT, element: str
337337
) -> Union[Optional[Awaitable[dict]], Optional[dict]]:
338338
"""
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``.
340340
341341
If the element does not exist, or if the vector set does not exist, None is
342342
returned.
343343
344-
For more information see https://redis.io/commands/vgetattr
344+
For more information, see https://redis.io/commands/vgetattr.
345345
"""
346346
return self.execute_command(VGETATTR_CMD, key, element)
347347

@@ -365,7 +365,7 @@ def vrandmember(
365365
366366
If the vector set does not exist, ``None`` is returned.
367367
368-
For more information see https://redis.io/commands/vrandmember
368+
For more information, see https://redis.io/commands/vrandmember.
369369
"""
370370
pieces = []
371371
pieces.append(key)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /