Skip to content

Commit

Permalink
feat: k-means tree
Browse files Browse the repository at this point in the history
Signed-off-by: usamoi <[email protected]>
  • Loading branch information
usamoi committed Nov 14, 2024
1 parent 1e33fec commit cdbdc39
Show file tree
Hide file tree
Showing 11 changed files with 253 additions and 225 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ To create the VectorChord RaBitQ(vchordrq) index, you can use the following SQL.
CREATE INDEX ON gist_train USING vchordrq (embedding vector_l2_ops) WITH (options = $$
residual_quantization = true
[build.internal]
lists = 4096
lists = [4096]
spherical_centroids = false
$$);
```
Expand Down
6 changes: 3 additions & 3 deletions scripts/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_ivf_ops_config(metric, workers, k=None, name=None):
config = "residual_quantization = true"
internal_centroids_cfg = f"""
[build.internal]
lists = {k}
lists = [{k}]
build_threads = {workers}
spherical_centroids = false
"""
Expand All @@ -80,7 +80,7 @@ def get_ivf_ops_config(metric, workers, k=None, name=None):
config = "residual_quantization = false"
internal_centroids_cfg = f"""
[build.internal]
lists = {k}
lists = [{k}]
build_threads = {workers}
spherical_centroids = true
"""
Expand All @@ -89,7 +89,7 @@ def get_ivf_ops_config(metric, workers, k=None, name=None):
config = "residual_quantization = false"
internal_centroids_cfg = f"""
[build.internal]
lists = {k}
lists = [{k}]
build_threads = {workers}
spherical_centroids = true
"""
Expand Down
Loading

0 comments on commit cdbdc39

Please sign in to comment.