An integration package connecting Astra DB and LangChain
Project description
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 import AstraDBVectorStore
my_store = AstraDBVectorStore(
embedding=my_embeddings,
collection_name="my_store",
api_endpoint="https://...",
token="AstraCS:...",
)
Chat message history
from langchain_astradb import AstraDBChatMessageHistory
message_history = AstraDBChatMessageHistory(
session_id="test-session",
api_endpoint="...",
token="...",
)
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for langchain_astradb-0.1.0rc0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02faae5ffd984b1a61cd623609e2818ffb2d7ed6c73df3fc59fabffcf4b3b97d |
|
MD5 | 3732f800a5df25ad630a82603c94c4f8 |
|
BLAKE2b-256 | b12674efd2d9efad518c7b0e1d91b50f246e0e1f119d58870582098a7427fa7c |
Hashes for langchain_astradb-0.1.0rc0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d52e89f6c07351a7e57ab50522298fffb159a022deec5dfb60e56b6742a3908 |
|
MD5 | 3b78e15c3ae6a3f829e7557d3f6a8e6c |
|
BLAKE2b-256 | b430610c2eebba8c4494831e9a8014bccf48e1162ad15948a76882b0ef4d8b32 |