CassandraByteStore
features and configurations head to the API reference.
Overview
Cassandra is a NoSQL, row-oriented, highly scalable and highly available database.Integration details
Class | Package | Local | JS support | Downloads | Version |
---|---|---|---|---|---|
CassandraByteStore | langchain-community | ✅ | ✅ |
Setup
TheCassandraByteStore
is an implementation of ByteStore
that stores the data in your Cassandra instance.
The store keys must be strings and will be mapped to the row_id
column of the Cassandra table.
The store bytes
values are mapped to the body_blob
column of the Cassandra table.
Installation
The LangChainCassandraByteStore
integration lives in the langchain-community
package. You’ll also need to install the cassio
package or the cassandra-driver
package as a peer dependency depending on which initialization method you’re using:
cassandra.cluster.Session
object, as described in the Cassandra driver documentation. The details vary (e.g. with network settings and authentication), but this might be something like:
Instantiation
You’ll first need to create acassandra.cluster.Session
object, as described in the Cassandra driver documentation. The details vary (e.g. with network settings and authentication), but this might be something like:
Usage
You can set data under keys like this using themset
method:
mdelete
method:
Init using cassio
It’s also possible to use cassio to configure the session and keyspace.
API reference
For detailed documentation of allCassandraByteStore
features and configurations, head to the API reference: python.langchain.com/api_reference/community/storage/langchain_community.storage.cassandra.CassandraByteStore.html