mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-25 08:03:39 +00:00
docs: Update langchain-astradb README with AstraDBStore (#17864)
This commit is contained in:
parent
3acd0c74fc
commit
f8a3b8e83f
@ -105,7 +105,7 @@ Learn more in the [example notebook](/docs/integrations/retrievers/self_query/as
|
|||||||
## Store
|
## Store
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from langchain_community.storage import AstraDBStore
|
from langchain_astradb import AstraDBStore
|
||||||
store = AstraDBStore(
|
store = AstraDBStore(
|
||||||
collection_name="my_kv_store",
|
collection_name="my_kv_store",
|
||||||
api_endpoint="...",
|
api_endpoint="...",
|
||||||
@ -118,7 +118,7 @@ Learn more in the [example notebook](/docs/integrations/stores/astradb#astradbst
|
|||||||
## Byte Store
|
## Byte Store
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from langchain_community.storage import AstraDBByteStore
|
from langchain_astradb import AstraDBByteStore
|
||||||
store = AstraDBByteStore(
|
store = AstraDBByteStore(
|
||||||
collection_name="my_kv_store",
|
collection_name="my_kv_store",
|
||||||
api_endpoint="...",
|
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
|
## Reference
|
||||||
|
|
||||||
See the [LangChain docs page](https://python.langchain.com/docs/integrations/providers/astradb) for a more detailed listing.
|
See the [LangChain docs page](https://python.langchain.com/docs/integrations/providers/astradb) for a more detailed listing.
|
||||||
|
Loading…
Reference in New Issue
Block a user