Skip to content

[Feature Request] Add Valkey as a database and vector database option #7795

@edlng

Description

@edlng

Problem Description

Agno supports Postgres, SQLite, and Redis as database backends, but not Valkey. Valkey is the Linux Foundation fork of Redis (post-license-change), and a decent amount of deployments have moved to it. Right now anyone running Valkey only has access to use the Redis adapter which isn't compatible and probably won't be compatible long term since the projects are diverging. It's a good opportunity to add this.

Same story on the vector DB side. There's a Redis vector store but nothing for Valkey.

Proposed Solution

Two new adapters:

  • ValkeyDb (session store) implementing BaseDb. Covers sessions, memories, metrics, evals, knowledge, cultural knowledge, traces, spans, and learnings. Uses the valkey-glide GLIDE client. Data stored as JSON values with secondary index sets for filtered lookups.

  • ValkeyDB (vector store) implementing the vector DB interface. Vector similarity search and keyword search via Valkey's FT.SEARCH module. Supports auth, TLS, and database selection

Alternatives Considered

No response

Additional Context

I have an implementation ready for Valkey with some optimizations.

Would you like to work on this?

  • Yes, I’d love to work on it!
  • I’m open to collaborating but need guidance.
  • No, I’m just sharing the idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions