Skip to content

Commit 3a64c71

Browse files
community: redis tool typos fix (#30811)
1 parent 4f69094 commit 3a64c71

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

docs/docs/integrations/providers/redis.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ with the default values of "service-name = mymaster" and "db-number = 0" if not
5959
The service-name is the redis server monitoring group name as configured within the Sentinel.
6060

6161
The current url format limits the connection string to one sentinel host only (no list can be given) and
62-
booth Redis server and sentinel must have the same password set (if used).
62+
both Redis server and sentinel must have the same password set (if used).
6363

6464
#### Redis Cluster connection url
6565

docs/docs/integrations/vectorstores/redis.ipynb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"1. `redis://` - Connection to Redis standalone, unencrypted\n",
121121
"2. `rediss://` - Connection to Redis standalone, with TLS encryption\n",
122122
"3. `redis+sentinel://` - Connection to Redis server via Redis Sentinel, unencrypted\n",
123-
"4. `rediss+sentinel://` - Connection to Redis server via Redis Sentinel, booth connections with TLS encryption\n",
123+
"4. `rediss+sentinel://` - Connection to Redis server via Redis Sentinel, both connections with TLS encryption\n",
124124
"\n",
125125
"More information about additional connection parameters can be found in the [redis-py documentation](https://redis-py.readthedocs.io/en/stable/connections.html)."
126126
]
@@ -187,7 +187,7 @@
187187
},
188188
{
189189
"cell_type": "code",
190-
"execution_count": 2,
190+
"execution_count": null,
191191
"id": "b1b1eb90-5155-44ca-a8a7-b04b02d5e77c",
192192
"metadata": {},
193193
"outputs": [],
@@ -209,7 +209,7 @@
209209
"# connection to redis standalone at localhost, db 0, no password but with TLS support\n",
210210
"redis_url = \"rediss://localhost:6379\"\n",
211211
"# connection to redis sentinel at localhost and default port, db 0, no password\n",
212-
"# but with TLS support for booth Sentinel and Redis server\n",
212+
"# but with TLS support for both Sentinel and Redis server\n",
213213
"redis_url = \"rediss+sentinel://localhost\""
214214
]
215215
},
@@ -254,7 +254,9 @@
254254
"cell_type": "markdown",
255255
"id": "7f98392b",
256256
"metadata": {},
257-
"source": "To enable automated tracing of your model calls, set your [LangSmith](https://docs.smith.langchain.com/) API key:"
257+
"source": [
258+
"To enable automated tracing of your model calls, set your [LangSmith](https://docs.smith.langchain.com/) API key:"
259+
]
258260
},
259261
{
260262
"cell_type": "code",
@@ -899,7 +901,7 @@
899901
]
900902
},
901903
{
902-
"name": "stdin",
904+
"name": "stdout",
903905
"output_type": "stream",
904906
"text": [
905907
"Please enter your OpenAI API key: ········\n"

libs/community/langchain_community/utilities/redis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def get_client(redis_url: str, **kwargs: Any) -> RedisType:
9999
correct redis server connection. The default service name is "mymaster". The
100100
optional second part of the path is the redis db number to connect to.
101101
102-
An optional username or password is used for booth connections to the rediserver
102+
An optional username or password is used for both connections to the rediserver
103103
and the sentinel, different passwords for server and sentinel are not supported.
104104
And as another constraint only one sentinel instance can be given:
105105
@@ -148,7 +148,7 @@ def _redis_sentinel_client(redis_url: str, **kwargs: Any) -> RedisType:
148148
If username and/or password for authentication is given the
149149
same credentials are used for the Redis Sentinel as well as Redis Server.
150150
With this implementation using a redis url only it is not possible
151-
to use different data for authentication on booth systems.
151+
to use different data for authentication on both systems.
152152
"""
153153
import redis
154154

0 commit comments

Comments
 (0)