Astra DB
DataStax Astra DB is a serverless vector-capable 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:
pip install "langchain-astradb>=0.1.0"
Get the connection secrets. Set up the following environment variables:
ASTRA_DB_APPLICATION_TOKEN="TOKEN"
ASTRA_DB_API_ENDPOINT="API_ENDPOINT"
Vector Store
from langchain_astradb import AstraDBVectorStore
vector_store = AstraDBVectorStore(
embedding=my_embedding,
collection_name="my_store",
api_endpoint=ASTRA_DB_API_ENDPOINT,
token=ASTRA_DB_APPLICATION_TOKEN,
)
API Reference:AstraDBVectorStore
Learn more in the example notebook.
See the example provided by DataStax.