mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-08 20:41:52 +00:00
community: redis tool typos fix (#30811)
This commit is contained in:
parent
4f69094b51
commit
3a64c7195f
@ -59,7 +59,7 @@ with the default values of "service-name = mymaster" and "db-number = 0" if not
|
|||||||
The service-name is the redis server monitoring group name as configured within the Sentinel.
|
The service-name is the redis server monitoring group name as configured within the Sentinel.
|
||||||
|
|
||||||
The current url format limits the connection string to one sentinel host only (no list can be given) and
|
The current url format limits the connection string to one sentinel host only (no list can be given) and
|
||||||
booth Redis server and sentinel must have the same password set (if used).
|
both Redis server and sentinel must have the same password set (if used).
|
||||||
|
|
||||||
#### Redis Cluster connection url
|
#### Redis Cluster connection url
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@
|
|||||||
"1. `redis://` - Connection to Redis standalone, unencrypted\n",
|
"1. `redis://` - Connection to Redis standalone, unencrypted\n",
|
||||||
"2. `rediss://` - Connection to Redis standalone, with TLS encryption\n",
|
"2. `rediss://` - Connection to Redis standalone, with TLS encryption\n",
|
||||||
"3. `redis+sentinel://` - Connection to Redis server via Redis Sentinel, unencrypted\n",
|
"3. `redis+sentinel://` - Connection to Redis server via Redis Sentinel, unencrypted\n",
|
||||||
"4. `rediss+sentinel://` - Connection to Redis server via Redis Sentinel, booth connections with TLS encryption\n",
|
"4. `rediss+sentinel://` - Connection to Redis server via Redis Sentinel, both connections with TLS encryption\n",
|
||||||
"\n",
|
"\n",
|
||||||
"More information about additional connection parameters can be found in the [redis-py documentation](https://redis-py.readthedocs.io/en/stable/connections.html)."
|
"More information about additional connection parameters can be found in the [redis-py documentation](https://redis-py.readthedocs.io/en/stable/connections.html)."
|
||||||
]
|
]
|
||||||
@ -187,7 +187,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 2,
|
"execution_count": null,
|
||||||
"id": "b1b1eb90-5155-44ca-a8a7-b04b02d5e77c",
|
"id": "b1b1eb90-5155-44ca-a8a7-b04b02d5e77c",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
@ -209,7 +209,7 @@
|
|||||||
"# connection to redis standalone at localhost, db 0, no password but with TLS support\n",
|
"# connection to redis standalone at localhost, db 0, no password but with TLS support\n",
|
||||||
"redis_url = \"rediss://localhost:6379\"\n",
|
"redis_url = \"rediss://localhost:6379\"\n",
|
||||||
"# connection to redis sentinel at localhost and default port, db 0, no password\n",
|
"# connection to redis sentinel at localhost and default port, db 0, no password\n",
|
||||||
"# but with TLS support for booth Sentinel and Redis server\n",
|
"# but with TLS support for both Sentinel and Redis server\n",
|
||||||
"redis_url = \"rediss+sentinel://localhost\""
|
"redis_url = \"rediss+sentinel://localhost\""
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -254,7 +254,9 @@
|
|||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"id": "7f98392b",
|
"id": "7f98392b",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": "To enable automated tracing of your model calls, set your [LangSmith](https://docs.smith.langchain.com/) API key:"
|
"source": [
|
||||||
|
"To enable automated tracing of your model calls, set your [LangSmith](https://docs.smith.langchain.com/) API key:"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
@ -899,7 +901,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "stdin",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"Please enter your OpenAI API key: ········\n"
|
"Please enter your OpenAI API key: ········\n"
|
||||||
|
@ -99,7 +99,7 @@ def get_client(redis_url: str, **kwargs: Any) -> RedisType:
|
|||||||
correct redis server connection. The default service name is "mymaster". The
|
correct redis server connection. The default service name is "mymaster". The
|
||||||
optional second part of the path is the redis db number to connect to.
|
optional second part of the path is the redis db number to connect to.
|
||||||
|
|
||||||
An optional username or password is used for booth connections to the rediserver
|
An optional username or password is used for both connections to the rediserver
|
||||||
and the sentinel, different passwords for server and sentinel are not supported.
|
and the sentinel, different passwords for server and sentinel are not supported.
|
||||||
And as another constraint only one sentinel instance can be given:
|
And as another constraint only one sentinel instance can be given:
|
||||||
|
|
||||||
@ -148,7 +148,7 @@ def _redis_sentinel_client(redis_url: str, **kwargs: Any) -> RedisType:
|
|||||||
If username and/or password for authentication is given the
|
If username and/or password for authentication is given the
|
||||||
same credentials are used for the Redis Sentinel as well as Redis Server.
|
same credentials are used for the Redis Sentinel as well as Redis Server.
|
||||||
With this implementation using a redis url only it is not possible
|
With this implementation using a redis url only it is not possible
|
||||||
to use different data for authentication on booth systems.
|
to use different data for authentication on both systems.
|
||||||
"""
|
"""
|
||||||
import redis
|
import redis
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user