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

This commit is contained in:
Christophe Bornet
2024-02-22 00:51:40 +01:00
committed by GitHub
parent 3acd0c74fc
commit f8a3b8e83f
2 changed files with 24 additions and 2 deletions

View File

@@ -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.