docs: Update langchain-astradb README with AstraDBStore (#17864)

pull/17902/head
Christophe Bornet 5 months ago committed by GitHub
parent 3acd0c74fc
commit f8a3b8e83f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -105,7 +105,7 @@ Learn more in the [example notebook](/docs/integrations/retrievers/self_query/as
## Store
```python
from langchain_community.storage import AstraDBStore
from langchain_astradb import AstraDBStore
store = AstraDBStore(
collection_name="my_kv_store",
api_endpoint="...",
@ -118,7 +118,7 @@ Learn more in the [example notebook](/docs/integrations/stores/astradb#astradbst
## Byte Store
```python
from langchain_community.storage import AstraDBByteStore
from langchain_astradb import AstraDBByteStore
store = AstraDBByteStore(
collection_name="my_kv_store",
api_endpoint="...",

@ -30,6 +30,28 @@ my_store = AstraDBVectorStore(
)
```
### Store
```python
from langchain_astradb import AstraDBStore
store = AstraDBStore(
collection_name="my_kv_store",
api_endpoint="...",
token="..."
)
```
### Byte Store
```python
from langchain_astradb import AstraDBByteStore
store = AstraDBByteStore(
collection_name="my_kv_store",
api_endpoint="...",
token="..."
)
```
## Reference
See the [LangChain docs page](https://python.langchain.com/docs/integrations/providers/astradb) for a more detailed listing.

Loading…
Cancel
Save