langchain-astradb: 0.5.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.

graph_vectorstores#

Classes

graph_vectorstores.AstraDBGraphVectorStore(...)

Create a new Graph Vector Store backed by AstraDB.

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.

utils.mmr_traversal.MmrHelper(k, query_embedding)

Helper for executing an MMR traversal query.

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.