Valkey vector database.
To use, you should have the valkey-glide-sync python package installed:
pip install langchain-aws[valkey]
Connection URL schemas:
Examples:
Initialize and load documents:
from langchain_aws.vectorstores import ValkeyVectorStore
from langchain_aws.embeddings import BedrockEmbeddings
embeddings = BedrockEmbeddings()
vds = ValkeyVectorStore.from_documents(
documents,
embeddings,
valkey_url="valkey://cluster_endpoint:6379",
)
Initialize with texts and metadata:
vds = ValkeyVectorStore.from_texts(
texts,
metadata,
embeddings,
valkey_url="valkey://cluster_endpoint:6379",
)