Setup
Install cassandra packagesExample
agent_with_knowledge.py
Async Support ⚡
Cassandra also supports asynchronous operations, enabling concurrency and leading to better performance.
async_cassandra.py
Cassandra Params
| Parameter | Type | Default | Description |
|---|---|---|---|
table_name | str | None | Name of the table to store vectors and metadata in Cassandra |
keyspace | str | None | Keyspace name in Cassandra where the table will be created |
embedder | Optional[Embedder] | OpenAIEmbedder() | Embedder instance to generate embeddings |
session | CassandraSession | None | Active Cassandra session object for database operations |
Developer Resources
- View Cookbook (Sync)
- View Cookbook (Async)