You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/partners/astradb
Christophe Bornet 0e26b16930
docs: Fix AstraDBVectorStore docstring (#17706)
7 months ago
..
langchain_astradb docs: Fix AstraDBVectorStore docstring (#17706) 7 months ago
scripts astradb: bootstrapping Astra DB as Partner Package (#16875) 7 months ago
tests partners/astradb: Use single file instead of module for AstraDBVectorStore (#17644) 7 months ago
.gitignore astradb: bootstrapping Astra DB as Partner Package (#16875) 7 months ago
LICENSE astradb: bootstrapping Astra DB as Partner Package (#16875) 7 months ago
Makefile astradb: bootstrapping Astra DB as Partner Package (#16875) 7 months ago
README.md docs: Update langchain-astradb README with AstraDBStore (#17864) 7 months ago
poetry.lock astradb[patch]: relaxed httpx version constraint (#17826) 7 months ago
pyproject.toml partners/astradb: Add dotenv to langchain-astradb integration tests (#17629) 7 months ago

README.md

langchain-astradb

This package contains the LangChain integrations for using DataStax 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.

Note. For a short transitional period, only some of the Astra DB integration classes are contained in this package (the remaining ones being still in langchain-community). In a short while, and surely by version 0.2 of LangChain, all of the Astra DB support will be removed from langchain-community and included in this package.

Installation and Setup

Installation of this partner package:

pip install langchain-astradb

Integrations overview

Vector Store

from langchain_astradb.vectorstores import AstraDBVectorStore

my_store = AstraDBVectorStore(
  embedding=my_embeddings,
  collection_name="my_store",
  api_endpoint="https://...",
  token="AstraCS:...",
)

Store

from langchain_astradb import AstraDBStore
store = AstraDBStore(
    collection_name="my_kv_store",
    api_endpoint="...",
    token="..."
)

Byte Store

from langchain_astradb import AstraDBByteStore
store = AstraDBByteStore(
    collection_name="my_kv_store",
    api_endpoint="...",
    token="..."
)

Reference

See the LangChain docs page for a more detailed listing.