Skip to content

Commit

Permalink
docs: Update langchain-astradb README with AstraDBStore (langchain-ai…
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet authored and al1p-R committed Feb 27, 2024
1 parent 9e89c7b commit 7a15900
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/integrations/providers/astradb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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="...",
Expand All @@ -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="...",
Expand Down
22 changes: 22 additions & 0 deletions libs/partners/astradb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 7a15900

Please sign in to comment.