langchain_astradb 0.3.0

langchain_astradb.cache

Classes

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

Cache that uses Astra DB as a backend.

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

Cache that uses Astra DB as a vector-store backend for semantic (i.e.

langchain_astradb.chat_message_histories

Astra DB - based chat message history, based on astrapy.

Classes

chat_message_histories.AstraDBChatMessageHistory(*, ...)

Chat message history that stores history in Astra DB.

langchain_astradb.document_loaders

Classes

document_loaders.AstraDBLoader(...)

Load DataStax Astra DB documents.

langchain_astradb.storage

Classes

storage.AstraDBBaseStore(*args, **kwargs)

Base class for the DataStax AstraDB 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.

langchain_astradb.utils

Classes

utils.astradb.SetupMode(value)

An enumeration.

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.

langchain_astradb.vectorstores

Classes

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

Wrapper around DataStax Astra DB for vector-store workloads.