langchain-astradb: 0.4.0#

Astra DB integration for LangChain.

cache#

Classes

cache.AstraDBCache(*[, collection_name, ...])

Cache that uses Astra DB as a backend.

cache.AstraDBSemanticCache(*[, ...])

Astra DB semantic cache.

chat_message_histories#

Classes

chat_message_histories.AstraDBChatMessageHistory(*, ...)

Chat message history that stores history in Astra DB.

document_loaders#

Classes

document_loaders.AstraDBLoader(...)

Load DataStax Astra DB documents.

storage#

Classes

storage.AstraDBBaseStore(*args, **kwargs)

Base class for the DataStax Astra DB data store.

storage.AstraDBByteStore(*, collection_name)

ByteStore implementation using DataStax AstraDB as the underlying store.

storage.AstraDBStore(collection_name, *[, ...])

BaseStore implementation using DataStax AstraDB as the underlying store.

utils#

Classes

utils.astradb.SetupMode(value[, names, ...])

Setup mode for the Astra DB collection.

Functions

utils.mmr.cosine_similarity(x, y)

Row-wise cosine similarity between two equal-width matrices.

utils.mmr.maximal_marginal_relevance(...[, ...])

Calculate maximal marginal relevance.

vectorstores#

Classes

vectorstores.AstraDBVectorStore(*, ...[, ...])

AstraDB vector store integration.