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.
安装和设置
安装以下 Python 包:向量存储
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
文档加载器
Self-querying retriever
Store
Byte store
将这些文档连接 到 Claude、VSCode 等工具,通过 MCP 获取实时答案。

