mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 10:34:13 -05:00
[GH-ISSUE #24623] feat: Add Valkey as a vector database backend #91102
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rileydes-improving on GitHub (May 12, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24623
Check Existing Issues
Verify Feature Scope
Problem Description
Open WebUI already supports a range of vector backends (Chroma, Milvus, Qdrant, pgvector, Elasticsearch, OpenSearch, Pinecone, Weaviate, MariaDB, Oracle 23ai, S3Vector, openGauss), but there's no lightweight, fully open-source, single-container option that fits a small-to-medium self-hosted setup.
If you're already running Valkey or Redis for caching, turning on RAG means standing up a second service just for vectors. Redis Stack would be the obvious drop-in, but Redis relicensed to RSALv2/SSPLv1 in March 2024, so it's off the table for a lot of deployments.
Desired Solution you'd like
Add a Valkey backend, activated via
VECTOR_DB=valkey.Valkey is the BSD-3, community-governed fork of Redis that now lives under the Linux Foundation. Pair it with the valkey-search module (1.2.0+) and you get native vector similarity search (HNSW or FLAT, cosine/L2/IP) plus TAG and TEXT filters, which covers what RAG needs.
Configuration would follow the existing per-backend pattern, for example:
This should be small in scope:
VectorDBBaseinterface.MODULE LISTcheck at startup can confirm valkey-search is present and new enough, and fail clearly if it isn't.Runtime-wise, Valkey 9.0.1+ with valkey-search 1.2.0+ is required. Easiest way to run it is the
valkey/valkey-bundleimage, but a stable Valkey core withlibsearch.soloaded via--loadmoduleworks just as well.Happy to put up a PR once this gets triaged.
Alternatives Considered
FT.SEARCHcapabilities, but Redis adopted a proprietary license (RSALv2/SSPLv1) in March 2024. Valkey is the BSD-3 fork.valkeyPython client is wire-compatible withredis-py, but Open WebUI has no Redis vector backend either, and a dedicated module gives us proper module-version validation and a supported client library.Additional Context
@owui-terminator[bot] commented on GitHub (May 12, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
🟣 #3820 Support on custom vector store
This is a broad request for supporting an additional external vector store via environment configuration. The new Valkey backend is the same kind of feature request: adding a new supported vector database backend with minimal config changes.
by shintiger
🟣 #16887 feat: add env var support for pgvector hnsw index type
This issue asks for making vector index type configurable through env vars in an existing vector backend. The Valkey proposal similarly requires backend-specific configuration options such as index type and metric selection, so it is closely related in implementation pattern.
by dlamoris
💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.
@Classic298 commented on GitHub (May 12, 2026):
as per docs the vector DBs are mostly community supported with the only exceptions being chromadb and pgvector. PR welcome, but won't be added by the core team.