From c56060bb7d69e5071c1f4b9105d3b7d8e608bd70 Mon Sep 17 00:00:00 2001 From: Christophe Bornet Date: Thu, 11 Jan 2024 16:52:29 +0100 Subject: [PATCH] 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 --- docs/docs/integrations/providers/astradb.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/docs/integrations/providers/astradb.mdx b/docs/docs/integrations/providers/astradb.mdx index 5059536ec48..e4c69d0e428 100644 --- a/docs/docs/integrations/providers/astradb.mdx +++ b/docs/docs/integrations/providers/astradb.mdx @@ -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