Skip to content

Commit 40a6fbd

Browse files
committed
updates for time
1 parent 534f84c commit 40a6fbd

File tree

7 files changed

+1626
-695
lines changed

7 files changed

+1626
-695
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ optimization_settings:
178178
# defines weight of each metric in optimization function
179179
metric_weights:
180180
f1: 1
181-
total_indexing_time: 1
181+
total_indexing_time: 1 # weight for total indexing time (seconds to reach 100% indexed)
182182
algorithms: ["hnsw"] # indexing algorithm to be included in the study
183183
vector_data_types: ["float16", "float32"] # data types to be included in the study
184184
distance_metrics: ["cosine"] # distance metrics to be included in the study
@@ -202,6 +202,12 @@ embedding_models:
202202

203203
```
204204

205+
The `total_indexing_time` metric is measured in **seconds** using wall-clock time
206+
from when indexing starts until Redis reports `percent_indexed == 1`. When a
207+
study reuses an existing index without reloading data, the previously measured
208+
indexing time is reused instead of querying `index.info()["total_indexing_time"]`.
209+
210+
205211
#### Code
206212
```python
207213
import os

0 commit comments

Comments
 (0)