Redis®*: Sizing your service
This documentation is part of the Vector search and RAG guide. You can view the complete guide here: Semantic search, recommendations, and retrieval-augmented generation with Redis.
👋 Welcome to the Stackhero documentation!
Stackhero provides a ready-to-use Redis cloud solution offering numerous advantages, including:
- Redis Commander web interface included.
- Unlimited message size and transfers.
- Updates made easy with just one click.
- Optimal performance and enhanced security thanks to a private, dedicated infrastructure.
Save time and make your life easier: it only takes 5 minutes to try Stackhero's Redis cloud hosting solution!
Vectors are stored in memory. You can estimate memory requirements with the following formula:
numberOfVectors x dimensions x 4 bytes, plus around 30–50% extra for the HNSW graph.
For example, one million vectors of 1536 dimensions use about 6 GB for the raw vectors. A 20 GB plan is a comfortable starting point for this scale. You can reduce memory usage by:
- Using a smaller model. For example, a 768-dimension model halves memory usage compared to a 1536-dimension model.
- Storing as
FLOAT16instead ofFLOAT32if your model supports it, which halves the space again.
You can monitor actual usage with FT.INFO chunksIndex and the used_memory metric in your Prometheus monitoring. If your requirements increase, upgrading your plan is straightforward and can be done directly from your dashboard.