DataStax Astra DB is a serverless
AI-ready database built on Apache Cassandra® and made conveniently available
through an easy-to-use JSON API.
Overview
The Astra DB Document Loader returns a list of LangChainDocument objects read from an Astra DB collection.
The loader takes the following parameters:
api_endpoint: Astra DB API endpoint. Looks likehttps://01234567-89ab-cdef-0123-456789abcdef-us-east1.apps.astra.datastax.comtoken: Astra DB token. Looks likeAstraCS:aBcD0123...collection_name: AstraDB collection namenamespace: (Optional) AstraDB namespace (called keyspace in Astra DB)filter_criteria: (Optional) Filter used in the find queryprojection: (Optional) Projection used in the find querylimit: (Optional) Maximum number of documents to retrieveextraction_function: (Optional) A function to convert the AstraDB document to the LangChainpage_contentstring. Defaults tojson.dumps
Setup
Load documents with the Document Loader
AstraDBLoader
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.