DataStax Astra DB is a serverless AI-ready database built on Apache Cassandra® and made conveniently available through an easy-to-use JSON API.
See a tutorial provided by DataStax.
Installation and setup
Install the following Python package:Vector store
A few typical initialization patterns are shown here:AstraDBVectorStore:
- native async API;
- metadata filtering in search;
- MMR (maximum marginal relevance) search;
- server-side embedding computation (“vectorize” in Astra DB parlance);
- auto-detect its settings from an existing, pre-populated Astra DB collection;
- hybrid search (vector + BM25 and then a rerank step);
- support for non-Astra Data API (e.g. self-hosted HCD deployments);
LLM cache
Semantic LLM cache
Document loader
Self-querying retriever
Store
Byte store
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.