mirror of
https://github.com/lancedb/lancedb.git
synced 2026-10-26 21:46:15 +00:00
fix(index): retain RaBitQ layout with the updated core
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user