Skip to content

Commit 353e125

Browse files
committed
Added REDIS_JUST_INDEX config to avoid resending duplicate data on the wire
1 parent 03b742b commit 353e125

File tree

5 files changed

+909
-9
lines changed

5 files changed

+909
-9
lines changed

engine/clients/redis/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
REDIS_CLUSTER = bool(int(os.getenv("REDIS_CLUSTER", 0)))
77
REDIS_HYBRID_POLICY = os.getenv("REDIS_HYBRID_POLICY", None)
88
REDIS_KEEP_DOCUMENTS = bool(os.getenv("REDIS_KEEP_DOCUMENTS", 1))
9+
REDIS_JUST_INDEX = bool(os.getenv("REDIS_JUST_INDEX", 0))
910
GPU_STATS = bool(int(os.getenv("GPU_STATS", 0)))
1011
GPU_STATS_ENDPOINT = os.getenv("GPU_STATS_ENDPOINT", None)
1112

engine/clients/redis/upload.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
REDIS_CLUSTER,
1515
GPU_STATS,
1616
GPU_STATS_ENDPOINT,
17-
REDIS_KEEP_DOCUMENTS,
17+
REDIS_JUST_INDEX,
1818
)
1919
from engine.clients.redis.helper import convert_to_redis_coords
2020

@@ -55,6 +55,8 @@ def init_client(cls, host, distance, connection_params, upload_params):
5555
def upload_batch(
5656
cls, ids: List[int], vectors: List[list], metadata: Optional[List[dict]]
5757
):
58+
if REDIS_JUST_INDEX:
59+
return
5860
for i in range(len(ids)):
5961
idx = ids[i]
6062
vector_key = str(idx)

experiments/configurations/create-intel-ce-edition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
ms = [4, 8, 16, 32]
44
ef_constructs = [4, 8, 16, 32]
5-
ef_runtimes = [4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192]
5+
ef_runtimes = [4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768]
66
data_type = "FLOAT16"
77
for algo in ["hnsw"]:
88
configs = []

0 commit comments

Comments
 (0)