$npx skillfedfor your agent

langchain-astradb

An integration package connecting Astra DB and LangChain

Worth itPyPI Artificial IntelligenceReleased Oct 2025241.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — langchain_astradb-1.0.0-py3-none-any.whl
v1.0.0 · released 2025-10-23 · Python <4.0.0,>=3.10.0 · 3 runtime deps: langchain-core, astrapy, numpy

Yes. This is an actively maintained, low-friction integration with no known vulnerabilities and permissive licensing. Install it if you are building LangChain applications on Astra DB or migrating away from deprecated community plugins. Be aware that collection configuration must match your code's expectations to avoid mismatch errors, particularly around hybrid search and indexing settings.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires an active Astra DB instance with API endpoint and application token; Python 3.10 or later.
  • Low install friction with a pure-Python wheel distribution.
  • Actively maintained with recent commits and no known vulnerabilities.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

last release 2025-10-23 (295 days) · last repo commit 2026-08-10 · 33 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 241,700 downloads/mo, #8,871 on PyPI

Verify before relying

pip install langchain-astradb

from langchain_astradb import AstraDBVectorStore

vector_store = AstraDBVectorStore(
    embedding=my_embedding,
    collection_name="my_collection",
    api_endpoint="https://...",
    token="AstraCS:...",
)
  • Whether server-side embedding computation ('vectorize') requires additional setup or API keys beyond the Astra DB token.
  • Performance characteristics and scaling limits for the vector store with large document collections.
  • Compatibility guarantees with specific versions of langchain-core and astrapy beyond what the dependency pins enforce.
Same gist for agents: .md · .json

What it is and what it does

langchain-astradb is a LangChain integration package that connects to DataStax Astra DB, a serverless vector-capable database built on Apache Cassandra. It replaces deprecated community-maintained Astra DB classes and provides six main components: AstraDBVectorStore for vector similarity search (including hybrid search with BM25 and reranking), AstraDBChatMessageHistory for storing conversation state, AstraDBCache and AstraDBSemanticCache for LLM response caching, AstraDBLoader for retrieving documents, and AstraDBStore/AstraDBByteStore for key-value storage.

The package depends on langchain-core, astrapy, and numpy. It handles collection creation idempotently by default, meaning it will create the underlying Astra DB collection on first use if it doesn't exist, or verify configuration matches if it does. The documentation emphasizes configuration matching between your code and the database to avoid mismatch errors, particularly around hybrid search settings and indexing options. It supports autodetection of collection configuration and offers explicit setup modes for predictable behavior.

Use it for

  • Build RAG (retrieval-augmented generation) applications using AstraDBVectorStore for semantic search over document embeddings.
  • Store and retrieve multi-turn conversation history in stateless LLM applications via AstraDBChatMessageHistory.
  • Cache LLM responses to reduce API costs and latency using AstraDBCache or AstraDBSemanticCache for semantic deduplication.
  • Load and index documents from Astra DB collections into LangChain workflows using AstraDBLoader.
  • Implement hybrid search combining vector similarity, keyword matching (BM25), and reranking in a single query.
  • Migrate from deprecated langchain_community Astra DB classes to get latest features and modern astrapy compatibility.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

This is an actively maintained, low-friction integration with no known vulnerabilities and permissive licensing. Install it if you are building LangChain applications on Astra DB or migrating away from deprecated community plugins. Be aware that collection configuration must match your code's expectations to avoid mismatch errors, particularly around hybrid search and indexing settings.

Install

langchain-astradb on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained with recent commits and no known vulnerabilities. Requires Python 3.10 or later.

Requires an active Astra DB instance with API endpoint and application token; Python 3.10 or later.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install langchain-astradb

from langchain_astradb import AstraDBVectorStore

vector_store = AstraDBVectorStore(
    embedding=my_embedding,
    collection_name="my_collection",
    api_endpoint="https://...",
    token="AstraCS:...",
)

Verify before relying

  • Whether server-side embedding computation ('vectorize') requires additional setup or API keys beyond the Astra DB token.
  • Performance characteristics and scaling limits for the vector store with large document collections.
  • Compatibility guarantees with specific versions of langchain-core and astrapy beyond what the dependency pins enforce.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0.0,>=3.10.0
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
langchain-coreastrapynumpy
MaintenanceActively maintained 295 days since the last release
Last repo commit
First released
Downloads241,700 / month, #8,871 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: langchain_astradb-1.0.0-py3-none-any.whl

Tags

Capabilities
astra db langchain integrationvector store cassandraserverless vector databaselangchain astra db connectorchat history storage astrasemantic cache langchaindocument loader astra db
Topics
vector-databaseraglangchain-integration

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “astra db langchain integration”

  • langchain-astradbIntegrates Astra DB (a serverless vector database built on Apache…
  • astrapyAstraPy is a Python client library for DataStax Astra DB that enables…
  • cassiocassIO integrates Apache Cassandra with machine learning and LLM…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also astrapy · langchain-postgres · langchain-mongodb · langchain-weaviate · langchain-qdrant · langchain-pinecone · langchain-oracledb · langchain-milvus · langchain-chroma · cassio