Skip to content

Commit

Permalink
Merge pull request #31 from cococo2000/main
Browse files Browse the repository at this point in the history
Add redis
  • Loading branch information
cococo2000 authored Aug 28, 2024
2 parents 9dff9e5 + 1896448 commit f1d8ed3
Show file tree
Hide file tree
Showing 7 changed files with 399 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/bvb-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- milvus
- qdrant
- weaviate
- redis
# - vearch # Vearch test is disabled temporarily due to disk space constraints.
# GPU support is not available in the free tier
# - milvus_gpu
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,13 @@ python run.py --dataset app_reviews-384-euclidean-filter --count 100 --runs 3 --
- vearch-ivfflat
- vearch-ivfpq
- vearch-hnsw
- [Redis](https://redis.io/)
- redis-flat
- redis-hnsw

**TODO**

- [Elasitcsearch](https://www.elastic.co/)
- [Redis](https://redis.io/)
- [Vespa](https://vespa.ai/)
- [SPTAG](https://github.com/microsoft/SPTAG)
- [pgvector](https://github.com/pgvector/pgvector)
Expand Down
6 changes: 6 additions & 0 deletions bigvectorbench/algorithms/redis/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM bigvectorbench-base

RUN pip install redisvl==0.3.2
RUN rvl version

COPY bigvectorbench/algorithms/redis/docker-compose.yml ./
23 changes: 23 additions & 0 deletions bigvectorbench/algorithms/redis/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
float:
euclidean:
- base_args: ["@metric", "@dimension"]
constructor: RedisFlat
disabled: False
docker_tag: bigvectorbench-redis
module: bigvectorbench.algorithms.redis
name: redis-flat
run_groups:
FLAT:
args: []
- base_args: ["@metric", "@dimension"]
constructor: RedisHNSW
disabled: False
docker_tag: bigvectorbench-redis
module: bigvectorbench.algorithms.redis
name: redis-hnsw
run_groups:
HNSW:
args:
m: [4, 8, 12, 16, 24, 36, 48, 64, 96]
ef_construction: [200, 500]
ef_runtime: [100, 120, 150, 200, 500, 600, 800]
14 changes: 14 additions & 0 deletions bigvectorbench/algorithms/redis/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
redis:
image: redis/redis-stack-server:7.4.0-v0
container_name: redis
ports:
- "6379:6379"
environment:
- "REDIS_ARGS=--save '' --appendonly no"
deploy:
replicas: 1
restart_policy:
condition: on-failure
labels:
- "com.docker.compose.publishers=redis,6379,6379"
Loading

0 comments on commit f1d8ed3

Please sign in to comment.