You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs
Jaeyeon Kim(김재연) ce4e29ae42
community[minor]: fix redis store docstring and streamline initialization code (#22730)
Thank you for contributing to LangChain!

### Description

Fix the example in the docstring of redis store.
Change the initilization logic and remove redundant check, enhance error
message.

### Issue

The example in docstring of how to use redis store was wrong.

![image](https://github.com/langchain-ai/langchain/assets/37469330/78c5d9ce-ee66-45b3-8dfe-ea29f125e6e9)

### Dependencies
Nothing



- [ ] **Add tests and docs**: If you're adding a new integration, please
include
1. a test for the integration, preferably unit tests that do not rely on
network access,
2. an example notebook showing its use. It lives in
`docs/docs/integrations` directory.


- [x] **Lint and test**: Run `make format`, `make lint` and `make test`
from the root of the package(s) you've modified. See contribution
guidelines for more: https://python.langchain.com/docs/contributing/

If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.

---------

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
4 months ago
..
cli couchbase: Add the initial version of Couchbase partner package (#22087) 4 months ago
community community[minor]: fix redis store docstring and streamline initialization code (#22730) 4 months ago
core core: fix mustache falsy cases (#22747) 4 months ago
experimental multiple: get rid of pyproject extras (#22581) 4 months ago
langchain langchain[patch]: allow to use partial variables in create_sql_query_chain (#22688) 4 months ago
partners docs: standardize ChatHuggingFace (#22693) 4 months ago
standard-tests multiple: add `stop` attribute (#22573) 4 months ago
text-splitters Community[minor]: Add language parser for Elixir (#22742) 4 months ago