DataStax Astra DB is a serverless
AI-ready database built on Apache Cassandra®
and made conveniently available
through an easy-to-use JSON API.
Document
objects read from an Astra DB collection.
The loader takes the following parameters:
api_endpoint
: Astra DB API endpoint. Looks like https://01234567-89ab-cdef-0123-456789abcdef-us-east1.apps.astra.datastax.com
token
: Astra DB token. Looks like AstraCS: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 LangChain page_content
string. Defaults to json.dumps
AstraDBLoader