Skip to main content
This will help you get started with Astra DB key-value stores. For detailed documentation of all AstraDBByteStore features and configurations head to the API reference.

Overview

DataStax Astra DB is a serverless AI-ready database built on Apache Cassandra® and made conveniently available through an easy-to-use JSON API.

Integration details

Setup

To create an AstraDBByteStore byte store, you’ll need to create a DataStax account.

Credentials

After signing up, set the following credentials:

Installation

The LangChain AstraDB integration lives in the langchain-astradb package:

Instantiation

Now we can instantiate our byte store:

Usage

You can set data under keys like this using the mset method:
And you can delete data using the mdelete method:
You can use an AstraDBByteStore anywhere you’d use other ByteStores.

API reference

For detailed documentation of all AstraDBByteStore features and configurations, head to the API reference