Add document loader section to Astra provider doc page (#15882)

See preview:
https://langchain-git-fork-cbornet-provider-astra-doc-loader-langchain.vercel.app/docs/integrations/providers/astradb#ocument-loader
This commit is contained in:
Christophe Bornet 2024-01-11 16:52:29 +01:00 committed by GitHub
parent 611f18c944
commit c56060bb7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,19 @@ message_history = AstraDBChatMessageHistory(
Learn more in the [example notebook](/docs/integrations/memory/astradb_chat_message_history).
### Document loader
```python
from langchain_community.document_loaders import AstraDBLoader
loader = AstraDBLoader(
api_endpoint="...",
token="...",
collection_name="my_collection"
)
```
Learn more in the [example notebook](/docs/integrations/document_loaders/astradb).
## Apache Cassandra and Astra DB through CQL