Skip to content

Redis vector store integration#1509

Open
daric93 wants to merge 4 commits into
0xPlaygrounds:mainfrom
daric93:feature/redis_vector_store
Open

Redis vector store integration#1509
daric93 wants to merge 4 commits into
0xPlaygrounds:mainfrom
daric93:feature/redis_vector_store

Conversation

@daric93
Copy link
Copy Markdown

@daric93 daric93 commented Mar 13, 2026

Summary

Adds Redis vector store implementation to Rig framework using RediSearch for efficient KNN vector similarity search.

Fixes #1239 - Originally requested Valkey support, implemented as Redis for broader compatibility and ecosystem maturity. Redis provides the same vector capabilities through RediSearch while offering more established tooling, documentation, and cloud provider support.

Vector Store Integration

Redis is an in-memory data structure store that can be used as a vector database through its RediSearch module. This integration leverages Redis's FT.SEARCH command with KNN queries for high-performance vector similarity search, making it suitable for applications requiring fast, scalable vector operations with the reliability and features of Redis.

Key Capabilities

  • High Performance: In-memory storage with sub-millisecond query times
  • Scalability: Horizontal scaling with Redis Cluster support
  • Persistence: Optional disk persistence for data durability
  • Rich Filtering: Advanced metadata filtering alongside vector search
  • Production Ready: Battle-tested in production environments worldwide

Resources

Source Code: https://github.com/redis/redis
Rust SDK: https://github.com/redis-rs/redis-rs
RediSearch Module: https://github.com/RediSearch/RediSearch
Official Documentation: https://redis.io/docs/stack/search/
Redis Stack: https://redis.io/docs/stack/

@daric93
Copy link
Copy Markdown
Author

daric93 commented Mar 25, 2026

Hi @joshua-mo-143 — could you review this PR when you have a chance? This implements the Redis vector store support discussed in #1239 . Happy to make changes if needed.
Thanks!

daric93 added 4 commits May 20, 2026 14:11
Signed-off-by: Daria Korenieva <daric2612@gmail.com>
…o use range syntax (@field:[val val]) - Use ConnectionManager for automatic reconnection - Add tracing (info for searches, debug for inserts, warn for failures) - Use redis::pipe() for batched inserts - Document COSINE distance assumption in module docs - Document expected RediSearch index schema - Register rig-redis in root rig facade behind 'redis' feature flag - Fix clippy: replace indexing with iterator patterns - Add clippy allow attributes in test files matching repo pattern - Update example to use ? instead of unwrap

Signed-off-by: Daria Korenieva <daric2612@gmail.com>
@daric93 daric93 force-pushed the feature/redis_vector_store branch from 4e97970 to 43ce2ba Compare May 20, 2026 22:33
@daric93
Copy link
Copy Markdown
Author

daric93 commented May 20, 2026

@joshua-mo-143 — would appreciate a look when you get a moment. Also want to confirm the Redis vector store integration still fits the project's direction.

@gold-silver-copper
Copy link
Copy Markdown
Contributor

@daric93

Hey there, I'm the new Rig maintainer. I'll give it a look soon, sorry for the delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add support for Valkey vector store

2 participants