fix(index): retain RaBitQ layout with the updated core

This commit is contained in:
Yang Cen
2026-10-21 21:32:02 +08:00
parent 9c8b7e3ae3
commit eacf91cb84
5 changed files with 129 additions and 63 deletions
+1
View File
@@ -897,6 +897,7 @@ class IvfRq:
target_partition_size: int, default is 8192
Target size of each partition.
accelerator: Optional[str], default None
Reserved for accelerator support. IVF RQ currently builds on CPU,
preserving all configured index options.
-1
View File
@@ -3639,7 +3639,6 @@ class LanceTable(Table):
replace=replace,
accelerator=acc,
num_bits=getattr(config, "num_bits", 8),
layered=getattr(config, "layered", None),
m=getattr(config, "m", 20),
ef_construction=getattr(config, "ef_construction", 300),
target_partition_size=getattr(
+5 -1
View File
@@ -457,7 +457,11 @@ def test_create_ivfrq_accelerator_preserves_layout(tmp_path, num_bits, layered):
data = pa.table(
{
"id": range(len(vectors)),
"vector": pa.FixedSizeListArray.from_arrays(pa.array(vectors.ravel()), 32),
"vector": pa.FixedSizeListArray.from_arrays(
pa.array(vectors.ravel()),
32,
mask=pa.array([row in (127, 255) for row in range(len(vectors))]),
),
}
)
db = connect(tmp_path)