Skip to content

Commit 2b75028

Browse files
authored
Merge pull request #124 from weaviate/rodrigo/rq
Add RQ quantization with HNSW
2 parents 3d88080 + 53f654c commit 2b75028

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

weaviate_cli/commands/create.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def create() -> None:
7272
"hnsw_pq",
7373
"hnsw_bq",
7474
"hnsw_sq",
75+
"hnsw_rq",
7576
"hnsw_acorn",
7677
"hnsw_multivector",
7778
"flat_bq",

weaviate_cli/managers/collection_manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ def create_collection(
197197
training_limit=training_limit
198198
)
199199
),
200+
"hnsw_rq": wvc.Configure.VectorIndex.hnsw(
201+
quantizer=wvc.Configure.VectorIndex.Quantizer.rq()
202+
),
200203
"hnsw_acorn": wvc.Configure.VectorIndex.hnsw(
201204
filter_strategy=VectorFilterStrategy.ACORN
202205
),

0 commit comments

Comments
 (0)