Wrapper around MemoryDB vector database.
Logical expression of InMemoryDBFilterFields.
InMemoryDBFilterExpressions can be combined using the & and | operators to create complex logical expressions that evaluate to the InMemoryDB Query language.
This presents an interface by which users can create complex queries without having to know the InMemoryDB Query language.
Filter expressions are not initialized directly. Instead they are built by combining InMemoryDBFilterFields using the & and | operators.
Schema for MemoryDB index.
InMemoryVectorStore vector database.
To use, you should have the redis python package installed
for AWS MemoryDB:
pip install redis
Once running, you can connect to the MemoryDB server with the following url schemas:
Examples:
The following examples show various ways to use the Redis VectorStore with LangChain.
Retriever for InMemoryVectorStore.