Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet committed Feb 22, 2024
1 parent 73546a8 commit 5306c1b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/integrations/providers/astradb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Learn more in the [example notebook](/docs/integrations/vectorstores/astradb).
## Chat message history

```python
from langchain_community.chat_message_histories import AstraDBChatMessageHistory
from langchain_astradb import AstraDBChatMessageHistory
message_history = AstraDBChatMessageHistory(
session_id="test-session",
api_endpoint="...",
Expand Down
13 changes: 12 additions & 1 deletion libs/partners/astradb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pip install langchain-astradb
### Vector Store

```python
from langchain_astradb.vectorstores import AstraDBVectorStore
from langchain_astradb import AstraDBVectorStore

my_store = AstraDBVectorStore(
embedding=my_embeddings,
Expand All @@ -30,6 +30,17 @@ my_store = AstraDBVectorStore(
)
```

### Chat message history

```python
from langchain_astradb import AstraDBChatMessageHistory
message_history = AstraDBChatMessageHistory(
session_id="test-session",
api_endpoint="...",
token="...",
)
```

### Store

```python
Expand Down

0 comments on commit 5306c1b

Please sign in to comment.