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
File details
Details for the file langchain_astradb-0.1.0rc1.tar.gz
.
File metadata
- Download URL: langchain_astradb-0.1.0rc1.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70e35865f70aff67a636eb745574943af3bcab8e6fdce689caded411e1ae055d |
|
MD5 | 372cbc5f2de4f4f2c8f29412a69eb9e8 |
|
BLAKE2b-256 | be3485450d2f40cf77ca4a63dc26128245b74ca4bfb1540b4cb97448f78095b2 |
File details
Details for the file langchain_astradb-0.1.0rc1-py3-none-any.whl
.
File metadata
- Download URL: langchain_astradb-0.1.0rc1-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 612f7749738bde61aebaa705a12ae0fa9059ff1ab881304363b2a44df555e267 |
|
MD5 | a56464cc0e2c359e9111ff954d1eb390 |
|
BLAKE2b-256 | ac916688500dd3ecee739562a392c7a11baacbbbd482deff5b7ad494db942f54 |