Skip to main content
You can use Redis as a vector database with Agno.

Setup

For connecting to a remote Redis instance, pass your Redis connection string to the redis_url parameter and the index name to the index_name parameter of the RedisDb constructor.
The vector store class was renamed from RedisDB to RedisDb in Agno v3.0; the old spelling still works as a deprecated alias. Because the session storage adapter in agno.db.redis is also named RedisDb, the vector store is additionally exported as RedisVectorDb — use that spelling when both are imported in the same module.
For a local docker setup, you can use the following command:

Example

agent_with_knowledge.py

Redis Params